How to add JavaFX to SyntaxHighlighter

I got sick and tired of my JavaFX code not having proper syntax highlighting on my blog and in my presentations, so I extended SyntaxHighlighter to do just that.

How to implement it

First, you’ll want to download SyntaxHighlighter or get the Wordpress plugin (and make a donation, it really is a cool piece of work). Next, unzip or otherwise install it. Download my shBrushJavaFX.js and copy it to <install_directory>/scripts

If you’re using the Wordpress plugin, you’ll have to edit the syntaxhighlighter.php file like so:

Holiday fun with JavaFX

After seeing all of the hype surrounding JavaFX and it’s recent 1.0 release, I decided to go ahead and play around with it a bit. Here’s a bit of what I learned, and a cool little holiday app you can run.

WTF is JavaFX and why might you care?

JavaFX is basically a way to develop much cooler GUIs with much less effort than Swing and have your app run almost everywhere. I would argue that it’s not as easy as Flex BUT it allows gives you more control.