Compose tips

  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • Syntax highlighting of source code can be enabled with the following tags:

    • Generic syntax highlighting tags: "<code>", "<blockcode>", "<pre>".
    • Language specific syntax highlighting tags: .

    Options and tips:

    • The language for the generic syntax highlighting tags can be specified with one of the attribute(s): type, lang, language, class. The possible values are: "apache" (for Apache Log), "apt_sources" (for Apt sources), "bash" (for Bash), "c" (for C), "cpp" (for C++), "cpp-qt" (for C++ (QT)), "css" (for CSS), "diff" (for Diff), "haskell" (for Haskell), "html4strict" (for HTML), "ini" (for INI), "javascript" (for Javascript), "latex" (for LaTeX), "mysql" (for MySQL), "php" (for PHP), "xml" (for XML), "xorg_conf" (for Xorg configuration).
    • 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.
    • A title can be added to a code block with the attribute "title".

    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 typeYou 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="mysql" linenumbers="normal">
    foo = "bar";
    baz = "foz";
    </code>
    Code block with syntax highlighting for MySQL source code
    and normal line numbers.
    <code language="mysql" start="23" fancy="7">
    foo = "bar";
    baz = "foz";
    </code>
    Code block with syntax highlighting for MySQL source code,
    line numbers starting from 23
    and highlighted line numbers every 7th line.
  • Web page addresses and e-mail addresses turn into links automatically.