Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SWT Syntax highlighting widget

Tags:

java

swt

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.

like image 958
David Avatar asked Apr 03 '09 13:04

David


1 Answers

Indeed, the general principle of syntax highlighting are using the StyledText Widget. StyledText Widget

The JavaSourcecodeViewer is a more advanced example. alt text

The JavaViewer is even more detailed (source code).

like image 93
VonC Avatar answered Oct 01 '22 14:10

VonC