Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't seem to change colors #255

Open
vrE-Um opened this issue Jan 11, 2023 · 3 comments
Open

Can't seem to change colors #255

vrE-Um opened this issue Jan 11, 2023 · 3 comments

Comments

@vrE-Um
Copy link

vrE-Um commented Jan 11, 2023

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.

@Hexman768
Copy link

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.

@Hexman768
Copy link

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.

@Hexman768
Copy link

You should be able to access those color properties like this: Hexman768/Notepad-Sharp@840902c#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants