dimanche 18 décembre 2011

Javascript code prettifier

I use the Prettify program to prettify the code I put on this blog. It's easy to use and can be customized. It can be found in the Google Code Repo.

To mark up a piece of code like this one

sentence = "Once upon in a time"
words = sentence.split()
for word in words:
print word,
print "The truth is elsewhere."

I need to mark the text with quotes like those :
sentence = "Once upon in a time"
words = sentence.split()
for word in words:
    print word,
print "The truth is elsewhere."

Aucun commentaire:

Enregistrer un commentaire