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