I'm trying to make a custom syntax highlight in TextEdit and found that TextEditor.add_keyword_color("*", Color(0.953125, 0.171265, 0.281214)) is not working as I expect.
TextEditor.add_keyword_color("*", Color(0.953125, 0.171265, 0.281214))
What I trying to achieve:
Looks like symbols are not supported.
Indeed, symbols aren't supported by add_keyword_color() as there's built-in symbol highlighting and non-alphanumeric characters can't be considered keywords.
add_keyword_color()
@Calinou said: Indeed, symbols aren't supported by add_keyword_color() as there's built-in symbol highlighting and non-alphanumeric characters can't be considered keywords.
ah, ok... thanks!