The Poker Copilot Blog

Tracking the development of Poker Copilot, Mac OS X software for poker analysis and statistics.

Tuesday, 27 May 2008

How can I Format Java Code with Blogger?

Does anyone know of a good tool that will help me with this?

When I paste Java code into this blog, I'd love for it to be nicely formattly with syntax highlighting and indenting. Unfortunately simply copying and pasting into the Compose window eats my indenting. And I really don't want to have to do all the formatting manually in the "Edit HTML" window.

Any suggestions?

5 comments:

Sohail Somani said...

If you use Emacs (and you should) you can use htmlfontify.el

It produces results like this.

Well, I usually do a bit of tweaking. Take a look at the css for that page.

Richard said...

I use blogger and I've been using Windows Live Writer. Google produced this nice thing:
http://www.codeplex.com/insertcode

"Insert Code for Windows Live Writer" - formats a few different languages. I haven't tested it yet :)

Steve McLeod said...

Mm, Windows Live Writer looks interesting. I tried to give it a test run, but true to it's name, it is Windows only. I'm using a Mac.

I wonder if there is something similar for Macs.

Ondrej Medek said...
This comment has been removed by the author.
Ondrej Medek said...

See this http://blogkori.com/how-to-show-htmljava-codes-in-bloggerblogspot-blog-posts

 

Poker Copilot

Free 30 Day Trial

Only $69

Order risk free with our 30-day money back guarantee.

  • Poker tracking software for Mac OS X
  • Supports PokerStars, Winamax, Merge Network, Ongame Network
  • Analyses your opponents while you play
  • On-table HUD for Mac
  • Easy to use, easy to understand

Watch a demo of the major features of Poker Copilot