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.