jueves, 18 de junio de 2009

Code Highlighting

Now you can post your snippets codes with a nice highlight.
Example:

from datetime import datetime
print datetime.now()



To use it, just write your code inside of <pre> or <textarea>
with tags name="code" and class="language" where language could be:

  • Javascript (js)
  • Bash (bash)
  • Python (python)
  • Sql (sql)
  • C++ (cpp)
  • Java (java)
  • Php (php)


If you are looking for a console style, use class="console", and <blink>_</blink>
for your cursor :)

No hay comentarios:

Publicar un comentario