Open vrE-Um opened 1 year ago
I think that you can do that. There are some properties that I believe allow you to modify the color used to highlight the keywords that are recognized by the regex. I'll try and find the code for you, I'll link it if I can find it.
Yeah this is what you are looking for: https://github.com/PavelTorgashov/FastColoredTextBox/blob/master/FastColoredTextBox/SyntaxHighlighter.cs#L669. You will have to modify this yourself. You could create some kind of configurator or just set it on your frontend and pass that value to the FastColoredTextBox.
You should be able to access those color properties like this: https://github.com/Hexman768/Notepad-Sharp/commit/840902c7418f3e42eab2153298a04c3e49a6949c#diff-7a326e4a4339497043cd003aa4c11424b05853e8903d87c968c42170277ace44R179. But you may have to change the visibility of those color options to public although I'm not completely sure about that. But that should be the only modification to the FastColoredTextBox you would have to make.
Hey there!
I'm actually using 'FastColoredTextBox' for a project of mine, using the input language option of lua, and I wanted to change the colors of methods/functions as 'print()', or the text in-between "/' as they don't quite cope with the esthetic of my project. Nonetheless, there's no option for that. Do I need to modify the .DLL file? - Or perhaps is there a better alternative for this plug-in?
Thanks in advance, Ervy.