Anyone know of an SWT widget that can be a text editor with support for syntax highlighting? I'm aware of the StyledText widget but I'm hoping that somebody has already written some libraries so one can just specify the keywords that should be highlighted.
Indeed, the general principle of syntax highlighting are using the StyledText Widget.
The JavaSourcecodeViewer is a more advanced example.
The JavaViewer is even more detailed (source code).
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