By aalmiray
via explodingpixels.wordpress.com
Published: May 19 2008 / 13:33
Have you ever wanted to embed syntax highlighted code in your app? In the above demo, I wanted to include the code that created the demo in order to help show how to “do-it-yourself”. Rather than switch from the demo to an IDE, I thought it was smoother and more focused to switch views within the actual application.
To get the syntax highlighted code, I used the open source jEdit Syntax Package. This package provides a JEditTextArea widget which handles all the details.
Add your comment
Voters For This Link (17)
-
aalmiray -
daniel -
davidwalsh -
bloid -
subru77 -
codecraig -
jggube -
kirillcool -
thinkingserious -
damber -
dsetrakyan -
awels -
xulii -
digi9ten -
Thierry.Lefort -
ixchelruiz -
davneter