petak, 6. veljače 2009.

Testing code preview

Hello, this is just a test of inserting code samples in post...

For now the best solution that I found here is this:

//

It shows some java code I wrote in TopCoder.

All you have to do is paste code from that link above at the end of
your html file. In post I've put my code between PRE tag, and it
works just fine:)

Only problem I had to solve was the < symbol in for loop. It was
recognised as a tag so I had to put whole code inside < !-- comment,
and also I had to put // in front so that it dosen't mess with java code.

To enable python code formatting add following line to html file:



Check here for other available scripts.

Nema komentara:

Objavi komentar