That last post was a pain, to get the whitespace to work. Anyone know of a better way to get spaces or tabs at the beginning of lines, besides inserting a bunch of   tokens?
5 comments:
Anonymous
said...
When I was doing some stuff with my home page I was using the pre HTML tag. Tha displays text as you typed it. But unfortunately I've seen that Blogger does not support that tag. Maybe they do support something else. Check the docs :)))
5 comments:
When I was doing some stuff with my home page I was using the pre HTML tag. Tha displays text as you typed it. But unfortunately I've seen that Blogger does not support that tag. Maybe they do support something else. Check the docs :)))
Best regards,
Kovi
On my blog I use this: http://java2html.de/applet.html
Janek.
--
http://weblog.janek.org
jst: Write the code in NetBeans as .java and use print to html?
I had been using <code> instead of <pre>. The former strips leading whitespace, the latter does not.
The applet is cool, and makes neat syntax coloring. However, it also seems to add extra line breaks between every line.
Try this out
http://www.blogpandit.com/2009/05/add-code-snippet-to-blogger-mystery.html
Post a Comment