plugin Color Text

Plugins for SynWrite and CudaText...
User avatar
RamSoft
Posts: 5
Joined: 12.04.2017 13:41

plugin Color Text

Post by RamSoft »

Rewritten plugin which existed for SynWrite
+ Works with unicode
+ CudaText specific
+ Config file

https://github.com/iRamSoft/cuda_color_text
color_text_cuda.png
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Вы молодец... Проверю и если все нормально- положу в AddonMan.
miro.matas
Posts: 67
Joined: 26.08.2013 06:16

Post by miro.matas »

looks very promising!
miro.matas
Posts: 67
Joined: 26.08.2013 06:16

Post by miro.matas »

• is possible to save "colorized words"? (aka SynWrite to *.synw-filestyles)
• is possible to colorize only selected word and not all the same words? (all_words=1 not works for me, I am sorry)
• duplicates of "whole_words=0", styles.ini - by mistake? or some reason

I am able to use this useful plugin, it works fine (mostly), but if will be not possible to save "colorization", than the colors will be used just for HTML Export… what is also BIG plus, of course. So not saving colors of words is by intention? or it is on roadmap?

TIA
Miro
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Plugin updated.
- dup lines in .ini file- fixed, you must del dups from your copy
- all_words=0 work, I checked

Posted wish to https://github.com/iRamSoft/cuda_color_text/issues/23
miro.matas
Posts: 67
Joined: 26.08.2013 06:16

Post by miro.matas »

Thanks a lot - all_words=0/1 works fine now (after update).

regarding >> https://github.com/iRamSoft/cuda_color_text/issues/23 - doesn't matter if two or one plugin, will be good to have an option for save/not_save helper file

TIA for any progress at this case, really thanks a lot
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Plugin updated.
Now it saves color attribs to helper file *.cuda-colortext, and restores attrs later on file opening.
miro.matas
Posts: 67
Joined: 26.08.2013 06:16

Post by miro.matas »

I am not able to apply the same Color Style X more then once at text…
what is bad on configuration?
Color Style Bold (or It.) is possible to use more time…
TIA
Miro
Attachments
animated gif - Color Text - 20sec
animated gif - Color Text - 20sec
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Hot fix: in __init__.py of plugin you see

Code: Select all

def do_color(ed, n):

    ed.attr(MARKERS_DELETE_BY_TAG, TAG_UNIQ + n)
delete the this line: ed.attr(MARK....)

==
plugin updated.
miro.matas
Posts: 67
Joined: 26.08.2013 06:16

Post by miro.matas »

works very well, thanks a lot
for some of future updates… will be good to synchronize action "file: close, delete" also for related .cuda-colortext file (do not leave orphan file on disk)
not critical
Post Reply