Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <blockcode> <dd>
Syntax highlighting of source code can be enabled with the following tags:
<code>", "<blockcode>".Options and tips:
actionscript" (for ActionScript), "cfm" (for ColdFusion), "csharp" (for C#), "css" (for CSS), "diff" (for Diff), "dos" (for DOS), "groovy" (for Groovy), "html4strict" (for HTML), "ini" (for INI), "java" (for Java), "java5" (for Java(TM) 2 Platform Standard Edition 5.0), "mysql" (for MySQL), "ocaml" (for OCaml), "perl" (for Perl), "php" (for PHP), "python" (for Python), "rails" (for Rails), "ruby" (for Ruby), "smalltalk" (for Smalltalk), "smarty" (for Smarty), "sql" (for SQL), "tcl" (for TCL), "text" (for Text), "winbatch" (for Winbatch), "xml" (for XML).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. |