Syntax highlighting of source code can be enabled with the following tags:
<code>
", "<blockcode>
".<applescript>
" for AppleScript source code, "<bash>
" for Bash source code, "<c>
" for C source code, "<diff>
" for Diff source code, "<javascript>
" for Javascript source code, "<objc>
" for Objective-C source code, "<xml>
" for XML source code.Options and tips:
applescript
" (for AppleScript), "bash
" (for Bash), "c
" (for C), "diff
" (for Diff), "javascript
" (for Javascript), "objc
" (for Objective-C), "xml
" (for XML).<foo>
, [foo]
.Defaults:
Examples:
You type | You get |
---|---|
<code>foo = "bar";</code> | Inline code with the default syntax highlighting mode. |
<code> | Code block with the default syntax highlighting mode. |
<code lang="objc" linenumbers="normal"> | Code block with syntax highlighting for Objective-C source code and normal line numbers. |
<code language="objc" start="23" fancy="7"> | Code block with syntax highlighting for Objective-C source code, line numbers starting from 23 and highlighted line numbers every 7th line. |
<applescript> | Code block with syntax highlighting for AppleScript source code. |
<applescript start="23" fancy="7"> | Code block with syntax highlighting for AppleScript source code, line numbers starting from 23 and highlighted line numbers every 7th line. |
Quoted content can be placed between [quote] tags in order to be displayed as an indented quote. Every [quote] tag must have a corresponding [/quote] tag. For example:
[quote]This is a simple quote.[/quote]is displayed as:
Quote:
This is a simple quote.
Additionally, there is an optional attribute which allows quotes to specify the original author.
[quote=Mr. Drupal]This is a quote with an attribution line.[/quote]is displayed as:
Mr. Drupal wrote:
This is a quote with an attribution line.
Finally, multiple [quote] tags can be nested within one another. Just remember that every [quote] tag must have a corresponding [/quote] tag.
[quote]I think she says it best... [quote=Ms. Quotation]This is a quote nested within another quote.[/quote] but you can't argue with [quote=Ms. Reply]The more quotes, the merrier. Just don't get too carried away.[/quote] And I have nothing more to say.[/quote]is displayed as:
Quote:
I think she says it best...Ms. Quotation wrote:but you can't argue with
This is a quote nested within another quote.Ms. Reply wrote:And I have nothing more to say.
The more quotes, the merrier. Just don't get too carried away.
Video Filter
You may insert videos from popular video sites by using a simple tag [video:URL]
.
Examples:
[video:http://www.youtube.com/watch?v=uN1qUeId]
[video:http://www.youtube.com/watch?v=uN1qUeId1,http://www.youtube.com/watch?v=uN1qUeId2]
[video:http://www.youtube.com/watch?v=uN1qUeId autoplay:1]
[video:http://www.youtube.com/watch?v=uN1qUeId width:X height:Y]
[video:http://www.youtube.com/watch?v=uN1qUeId ratio:4/3]
[video:http://www.youtube.com/watch?v=uN1qUeId align:right]
Supported sites: Archive.org, Blip.tv, Capped, College Humor, DailyMotion, Flickr Slideshows, Flickr Video, Game Trailers, Game Videos, GodTube, Google Video, Meta Cafe, MySpace, Picasa Slideshows, Slideshare, Streamhoster, Teachertube, Vimeo, Wistia, YouTube, YouTube (Playlist).
Special instructions:
Some codecs need special input. You'll find those instructions here.[video: http://picasaweb.google.com/data/feed/base/user/USER_NAME/albumid/5568104935784209834?alt=rss&kind=photo&hl=en_US]