I need some advice on creating a syntax highligher for java application using swing. The application should allow to edit a file and highlight syntax.
I don't know the swing library, what should I look for?
To add a syntax highlighting language, simply check its checkbox in the main list of languages. It will appear with a checkmark in bold font to show that it has been selected but not yet installed.
Syntax highlighting determines the color and style of source code displayed in the Visual Studio Code editor. It is responsible for colorizing keywords like if or for in JavaScript differently than strings and comments and variable names.
I use RSyntaxTextArea and it works well.
JSyntaxPane is quite active and supports a lot of languages (+ a friendly license).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With