Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
Syntax highlighting of source code can be enabled with the following tags:
<code>", "<blockcode>".Options and tips:
c" (for C), "cpp" (for C++), "drupal5" (for Drupal 5), "drupal6" (for Drupal 6), "java" (for Java), "javascript" (for Javascript), "php" (for PHP), "python" (for Python), "ruby" (for Ruby).<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="ruby" linenumbers="normal"> | Code block with syntax highlighting for Ruby source code and normal line numbers. |
<code language="ruby" start="23" fancy="7"> | Code block with syntax highlighting for Ruby source code, line numbers starting from 23 and highlighted line numbers every 7th line. |