Compose tips
- Web page addresses and e-mail addresses turn into links automatically.
Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
- Lines and paragraphs are automatically recognized. The <br /> line break, <p> paragraph and </p> close paragraph tags are inserted automatically. If paragraphs are not recognized simply add a couple blank lines.
Syntax highlighting of source code can be enabled with the following tags:
- Generic syntax highlighting tags: "
<code>", "<blockcode>". - Language specific syntax highlighting tags: "
<as>" for ActionScript source code, "<as3>" for ActionScript 3 source code, "<csharp>" for C# source code, "<diff>" for Diff source code, "<drupal5>" for Drupal 5 source code, "<drupal6>" for Drupal 6 source code, "<html>" for HTML source code, "<js>" for Javascript source code, "<mysql>" for MySQL source code, "<php>" for PHP source code, "<phpbrief>" for PHP (brief) source code, "<python>" for Python source code, "<sql>" for SQL source code, "<plain>" for Text source code, "<xml>" for XML source code. - PHP source code can also be enclosed in <?php ... ?> or <% ... %>, but additional options like line numbering are not possible here.
Options and tips:
- The language for the generic syntax highlighting tags can be specified with one of the attribute(s): type, lang, language. The possible values are: "
actionscript" (for ActionScript), "actionscript3" (for ActionScript 3), "apache" (for Apache configuration), "as" (for ActionScript), "as3" (for ActionScript 3), "bnf" (for bnf), "c" (for C), "c_mac" (for C (Mac)), "cpp" (for C++), "cpp-qt" (for C++ (QT)), "csharp" (for C#), "css" (for CSS), "diff" (for Diff), "div" (for DIV), "drupal5" (for Drupal 5), "drupal6" (for Drupal 6), "html" (for HTML), "html4strict" (for HTML), "ini" (for INI), "javascript" (for Javascript), "js" (for Javascript), "mysql" (for MySQL), "perl" (for Perl), "php" (for PHP), "php-brief" (for PHP (brief)), "phpbrief" (for PHP (brief)), "plain" (for Text), "python" (for Python), "reg" (for Microsoft Registry), "robots" (for robots.txt), "sql" (for SQL), "text" (for Text), "tsql" (for T-SQL), "vbnet" (for vb.net), "xml" (for XML). - Line numbering can be enabled/disabled with the attribute "linenumbers". Possible values are: "off" for no line numbers, "normal" for normal line numbers and "fancy" for fancy line numbers (every nth line number highlighted). The start line number can be specified with the attribute "start", which implicitly enables normal line numbering. For fancy line numbering the interval for the highlighted line numbers can be specified with the attribute "fancy", which implicitly enables fancy line numbering.
- If the source code between the tags contains a newline (e.g. immediatly after the opening tag), the highlighted source code will be displayed as a code block. Otherwise it will be displayed inline.
- Beside the tag style "
<foo>" it is also possible to use "[foo]".
Defaults:
- Default highlighting mode for generic syntax highlighting tags: when no language attribute is specified, no syntax highlighting will be done.
- Default line numbering: no line numbers.
Examples:
You type You get <code>foo = "bar";</code>Inline code with the default syntax highlighting mode. <code>
foo = "bar";
baz = "foz";
</code>Code block with the default syntax highlighting mode. <code lang="xml" linenumbers="normal">
foo = "bar";
baz = "foz";
</code>Code block with syntax highlighting for XML source code
and normal line numbers.<code language="xml" start="23" fancy="7">
foo = "bar";
baz = "foz";
</code>Code block with syntax highlighting for XML source code,
line numbers starting from 23
and highlighted line numbers every 7th line.<as>
foo = "bar";
baz = "foz";
</as>Code block with syntax highlighting for ActionScript source code. <as start="23" fancy="7">
foo = "bar";
baz = "foz";
<as>Code block with syntax highlighting for ActionScript source code,
line numbers starting from 23
and highlighted line numbers every 7th line.- Generic syntax highlighting tags: "