Page 1 of 1

Colored Indent plugin in just tab rows

Posted: 30.01.2024 01:18
by SamC
Hello,
when using colored intent plugin,the lines with just tabs will not be colored.(line 157 and 158 below)
Thanks!
Snipaste_2024-01-30_09-15-47.png

Re: colored intent plugin in just tab rows

Posted: 30.01.2024 03:43
by main Alexey
yes, lines with just spaces and with just tabs. it is by design, ok IMHO.

Re: colored intent plugin in just tab rows

Posted: 30.01.2024 04:46
by SamC
"By design" means it can't be adjusted by plugin code and built-in cuda api?
I’ve see the plugin code,it seems no special code to clear the color of lines with just spaces and with just tabs.

Re: colored intent plugin in just tab rows

Posted: 30.01.2024 05:00
by main Alexey
it is plugin code. change it here, in "def get_indent":

Code: Select all

def get_indent(s):
    for i in range(len(s)):
        if s[i] not in (' ', '\t'):
            return s[:i]
    return s
please name the topic better: Colored Indent plugin.

Re: Colored Indent plugin in just tab rows

Posted: 30.01.2024 05:20
by SamC
Get it, thanks!

Re: Colored Indent plugin in just tab rows

Posted: 30.01.2024 05:21
by main Alexey
I added new option: "only_space".