I have disabled comments due to an overwhelming amount of comment spam, that I cannot seem to stop, no matter how hard I try.
Compose tips |
- Full HTML:
- 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: "
<apache>" for Apache configuration source code, "<applescript>" for AppleScript source code, "<bash>" for Bash source code, "<drupal5>" for Drupal 5 source code, "<drupal6>" for Drupal 6 source code, "<html>" for HTML source code, "<perl>" for Perl source code, "<perl6>" for Perl 6 source code, "<php>" for PHP source code, "<python>" for Python source code, "<ruby>" for Ruby source code.
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 configuration), "applescript" (for AppleScript), "bash" (for Bash), "drupal5" (for Drupal 5), "drupal6" (for Drupal 6), "html" (for HTML), "html4strict" (for HTML), "mysql" (for MySQL), "perl" (for Perl), "perl6" (for Perl 6), "php" (for PHP), "python" (for Python), "ruby" (for Ruby). - The supported tag styles are:
<foo>,[foo]. - 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.
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="perl6" linenumbers="normal">
foo = "bar";
baz = "foz";
</code>Code block with syntax highlighting for Perl 6 source code
and normal line numbers.<code language="perl6" start="23" fancy="7">
foo = "bar";
baz = "foz";
</code>Code block with syntax highlighting for Perl 6 source code,
line numbers starting from 23
and highlighted line numbers every 7th line.<apache>
foo = "bar";
baz = "foz";
</apache>Code block with syntax highlighting for Apache configuration source code. <apache start="23" fancy="7">
foo = "bar";
baz = "foz";
<apache>Code block with syntax highlighting for Apache configuration source code,
line numbers starting from 23
and highlighted line numbers every 7th line.- Generic syntax highlighting tags: "
- Typogrify.module brings the typographic refinements of Typogrify to Drupal.
- Wraps ampersands (the $ldquo;&” character) with <span class=\"amp\">&</span>.
- Prevents single words from wrapping onto their own line using Shaun Inman's Widont technique.
- Converts straight quotation marks to typographer's quotation marks, using SmartyPants.
- Converts multiple hyphens to en dashes and em dashes (according to your preferences), using SmartyPants.
- Wraps multiple capital letters with <span class=\"caps\">CAPS</span>.
- Wraps initial quotation marks with <span class=\"quo\"></span> or <span class=\"dquo\"></span>.
- Adds a css style sheet that uses the <span> tags to substitute a showy ampersand in headlines, switch caps to small caps, and hang initial quotation marks.
- Markdown with Smartypants:
Syntax highlighting of source code can be enabled with the following tags:
- Generic syntax highlighting tags: "
<code>", "<blockcode>". - Language specific syntax highlighting tags: "
<apache>" for Apache configuration source code, "<applescript>" for AppleScript source code, "<bash>" for Bash source code, "<drupal5>" for Drupal 5 source code, "<drupal6>" for Drupal 6 source code, "<html>" for HTML source code, "<perl>" for Perl source code, "<perl6>" for Perl 6 source code, "<php>" for PHP source code, "<python>" for Python source code, "<ruby>" for Ruby source code.
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 configuration), "applescript" (for AppleScript), "bash" (for Bash), "drupal5" (for Drupal 5), "drupal6" (for Drupal 6), "html" (for HTML), "html4strict" (for HTML), "mysql" (for MySQL), "perl" (for Perl), "perl6" (for Perl 6), "php" (for PHP), "python" (for Python), "ruby" (for Ruby). - The supported tag styles are:
<foo>,[foo]. - 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.
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="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.<apache>
foo = "bar";
baz = "foz";
</apache>Code block with syntax highlighting for Apache configuration source code. <apache start="23" fancy="7">
foo = "bar";
baz = "foz";
<apache>Code block with syntax highlighting for Apache configuration source code,
line numbers starting from 23
and highlighted line numbers every 7th line.- Generic syntax highlighting tags: "
- 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.example.com "The optional title text")
- Typogrify.module brings the typographic refinements of Typogrify to Drupal.
- Wraps ampersands (the $ldquo;&” character) with <span class=\"amp\">&</span>.
- Prevents single words from wrapping onto their own line using Shaun Inman's Widont technique.
- Converts straight quotation marks to typographer's quotation marks, using SmartyPants.
- Converts multiple hyphens to en dashes and em dashes (according to your preferences), using SmartyPants.
- Wraps multiple capital letters with <span class=\"caps\">CAPS</span>.
- Wraps initial quotation marks with <span class=\"quo\"></span> or <span class=\"dquo\"></span>.
- Adds a css style sheet that uses the <span> tags to substitute a showy ampersand in headlines, switch caps to small caps, and hang initial quotation marks.