I have been trying to make a CodeHighlighter resource to match the Godot code highlighter as close as I can, and have nearly gotten there except for two things, one of which is that member functions and normal functions have the same colour:
(Godot’s highlighter in the editor, then my recreation.)
(By ‘member functions’ I mean the functions like ‘node_signal.disconnect()’ opposed to function names like ‘disconnect_all_connections’)
Is there a way to do this like how the Godot highlighter does? The CodeHighlighter has a ‘Member Variable’ colour setting, but doesn’t seem to have the equivalent for functions.
So am I missing something or is there a way to achieve the same result without having to keyword every function that we call to set the colour?
Since I want it just for the ones that as you said are darker when they are not defining them, since that is blanket for all the functions.
Is there documentation for how the default data is acquired?
Since I would want to keep nearly all of the default data (Since if I can do this I could change the default function colour to the darker one and then change the highlighting only for the defining line), but I can’t see if there is a way to modify the returned data opposed to fully overriding it.
It works great! The only annoying thing is that for this I had to re-create the CodeHighlighter I was using as a saved resource in the _init since when I tried using load() it was defaulting all the values, but after that it worked wonders!
Thank you so much!
Thanks, I will go do that now as it is weird this isn’t available already.