Typo code formatting

If you want to format code in your Typo blog you may do so by using the typo:code block and setting the following options:

  • lang. Sets the programming language. Currently supported languages are ruby, C, Delphi, HTML, RHTML, Nitro-XHTML, CSS, Diff, Java, * Javascript and yaml. Other languages will format correctly but will not have syntax highlighting.
  • linenumber. Turns on line numbering. Use linenumber=“true” to enable.
  • title. Adds a title block to the top of the code block.

More information at:

http://wiki.github.com/fdv/typo/typo-macros-explained

Sun, 14 Feb 2010 21:48 Posted in

Comment Typo code formatting