Author: Godofredo Fdez.
Syntax highlighting of source code can be enabled with the following tags:
<code>
", "<blockcode>
".Options and tips:
bash
" (for Bash), "c
" (for C), "css
" (for CSS), "drupal5
" (for Drupal 5), "drupal6
" (for Drupal 6), "html4strict
" (for HTML), "lisp
" (for Lisp), "mysql
" (for MySQL), "perl
" (for Perl), "php
" (for PHP), "text
" (for Text).<foo>
, [foo]
.Defaults:
Examples:
You type | You get |
---|---|
<code>foo = "bar";</code> | Inline code with the default syntax highlighting mode. |
<code> | Code block with the default syntax highlighting mode. |
<code lang="text" linenumbers="normal"> | Code block with syntax highlighting for Text source code and normal line numbers. |
<code language="text" start="23" fancy="7"> | Code block with syntax highlighting for Text source code, line numbers starting from 23 and highlighted line numbers every 7th line. |