Thursday, June 12. 2008Cute format on javaporn ?
I wrote only 2 posts on this wonderful blog, and I'm already upset by the dumb formating options.
I thought : and if I was able to copy/paste the nice formatted code of an eclipse editor directly in the blog post, without having any edition to do about format itself... ? Yeah... Just made it Look at my beautiful previous posts with gorgeous syntax highlight ! What a dream !! Rendered with my own tool ! You want to do it all the same ? Come on, just check this code in, and with slight adaptations to match your blog engine it could work nice... Analysis.java (ahh, of course the code itself is a perfect piece of crap) Small howto : * be sure to use Java 6 !!! * download & compile the code * run it as a main class * copy some code from an arbitrary eclipse editor (java, xml, whatever...) * paste it in the big window * click the export button * copy all the ugly code produced * paste it to your naughty blog It takes in account bold, italic, and colors. So feel free to configure eclipse with funny styles to use it as well ! (I'm pretty proud about my pink strings, in fact...) Enjoy Trackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Nice but you could have use: http://code.google.com/p/syntaxhighlighter/
no extra pre-processing
For the record, it seems like 'coloring code in blog post' is an all-time-blogger-favorite :
http://steve.yegge.googlepages.com/saving-time And yes, your code looks like a pile of c*ap ... but isn't that the point ??? PH |
QuicksearchCategoriesSyndicate This BlogBlog Administration |