Code highlight
Hi everyone! Suppose not a lot of people will read this, but this is my first post and i will post some code stuff in this blog (C#, JavaScript, etc.)
And the first problem is code hightlight in Tumblr, an as i see there are 2 options.
1) use javascript prettify script http://code.google.com/p/google-code-prettify/. Here you can reed how to add it to your tumblr blog http://hoffmann.tumblr.com/post/48187664/add-syntax-highlighting-to-tumblr
2) use pygments (http://pygments.org/).
I prefer pygments because you can use it not only to produce final html markup but for example LaTeX or other. All the documentation you can find on pygments site.
And of course the example (XML hightlight):
<?xml DOCTYPE ?> <test attr="value" attr2="anotherValue"> <!-- Comment --> </test>
Use this command to generate full html with css classes:
$ pygmentize -f html -O full -o test.html test.xml














