I use "SyntaxHighlighter" from http://alexgorbatchev.com/ -- in addition to Java, XML etc I like it because there's also support for JavaFX. You basically have to add a stylesheet and some javascript links to your page template. Once you've done that you just add <pre> blocks to place code -- like <pre class="brush: java;"> to style it for Java. I like it since in addition to syntax highlighting, in the absence of JavaScript it gracefully downgrades to preformatted text, and notice the toolbar stuff on the right of each clip which lets you copy the code (without formatting) to the clipbard etc.
Here's an example of a blog entry with code samples: http://blogs.sun.com/tor/entry/leak_unit_tests -- Tor On Apr 30, 9:45 am, Christian Bernini <[email protected]> wrote: > Posterous now supports Gist urls, so all I needed so far in a blogging tool > is there for me. Since I can simply post by sending an e-mail to it. > > Been using it for a while and haven't faced any issue. > > Here's the link with an example of this feature: > > http://blog.posterous.com/posterous-now-supports-traileraddict-embeds-a > > -- > Christian Bernini > > -- > You received this message because you are subscribed to the Google Groups > "The Java Posse" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/javaposse?hl=en. -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
