The language for the generic syntax highlighting tags can be specified with one of the attribute(s): type, lang, language. The possible values are: "apache" (for Apache configuration), "applescript" (for AppleScript), "bash" (for Bash), "c" (for C), "c_mac" (for C (Mac)), "cpp" (for C++), "cpp-qt" (for C++ (QT)), "css" (for CSS), "drupal5" (for Drupal 5), "drupal6" (for Drupal 6), "html4strict" (for HTML), "ini" (for INI), "java" (for Java), "javascript" (for Javascript), "objc" (for Objective-C), "perl" (for Perl), "php" (for PHP), "php-brief" (for PHP (brief)), "povray" (for POVRAY), "python" (for Python), "rails" (for Rails), "robots" (for robots.txt), "ruby" (for Ruby), "smarty" (for Smarty), "sql" (for SQL), "text" (for Text), "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: fancy line numbers (every 5 lines).
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 block with syntax highlighting for Drupal 6 source code, line numbers starting from 23 and highlighted line numbers every 7th line.
Link to Amazon products with: [amazon product_id inline|full|thumbnail]. Example: [amazon 1590597559 thumbnail]
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.
Web page addresses and e-mail addresses turn into links automatically.
If you include a textual smiley in your post (see chart below), it will be replaced by a graphical smiley.
Note: Since the x.2 version, the full video path needs to be given.
Examples:
Single video: [video:http://www.youtube.com/watch?v=uN1qUeId]
Random video out of multiple: [video:http://www.youtube.com/watch?v=uN1qUeId1,http://www.youtube.com/watch?v=uN1qUeId2]