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