Syntax highlighting of source code can be enabled with the following tags:
<code>", "<blockcode>".Options and tips:
drupal5" (for Drupal 5), "drupal6" (for Drupal 6).<foo>" it is also possible to use "[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="drupal5" linenumbers="normal"> | Code block with syntax highlighting for Drupal 5 source code and normal line numbers. |
<code language="drupal5" start="23" fancy="7"> | Code block with syntax highlighting for Drupal 5 source code, line numbers starting from 23 and highlighted line numbers every 7th line. |