Hello,
when using colored intent plugin,the lines with just tabs will not be colored.(line 157 and 158 below)
Thanks!
Colored Indent plugin in just tab rows
Colored Indent plugin in just tab rows
Last edited by SamC on 30.01.2024 05:15, edited 1 time in total.
-
- Posts: 2265
- Joined: 25.08.2021 18:15
Re: colored intent plugin in just tab rows
yes, lines with just spaces and with just tabs. it is by design, ok IMHO.
Re: colored intent plugin in just tab rows
"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.
I’ve see the plugin code,it seems no special code to clear the color of lines with just spaces and with just tabs.
-
- Posts: 2265
- Joined: 25.08.2021 18:15
Re: colored intent plugin in just tab rows
it is plugin code. change it here, in "def get_indent":
please name the topic better: Colored Indent plugin.
Code: Select all
def get_indent(s):
for i in range(len(s)):
if s[i] not in (' ', '\t'):
return s[:i]
return s
Re: Colored Indent plugin in just tab rows
Get it, thanks!
-
- Posts: 2265
- Joined: 25.08.2021 18:15
Re: Colored Indent plugin in just tab rows
I added new option: "only_space".