Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <caption> <tbody> <tr> <td> <em> <b> <u> <i> <strong> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <embed> <object> <param> <strike>
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="drupal6" linenumbers="normal"> | Code block with syntax highlighting for Drupal 6 source code and normal line numbers. |
<code language="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. |
<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. |