Compose tips

  • Syntax highlighting of source code can be enabled with the following tags:

    • Generic syntax highlighting tags: "<code>", "<blockcode>".
    • 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. 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 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="perl" linenumbers="normal">
    foo = "bar";
    baz = "foz";
    </code>
    Code block with syntax highlighting for Perl source code
    and normal line numbers.
    <code language="perl" start="23" fancy="7">
    foo = "bar";
    baz = "foz";
    </code>
    Code block with syntax highlighting for Perl 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]
  • Textile Help

    Block modifier syntax:

    CSS attributes can be applied to blocks (paragraphs, headers, etc.). CSS classes are specifed with "(class)"; CSS IDs are specified with "(#id)"; both can be specified with "(class#id)". An arbtirary CSS style can be applied by using "{style}". Finally, language attributes are applied using "[language]".

    Additionally, alignment and indentation shorthands are provided. To left-align, right-align, center, and justify text, use "<", ">", "=", and "<>", respectively. "(" left-indents a block 1em for each occurrence, and ")" right-indents similarly.

    Tables have additional options. "^", "-", and "~" specify top, middle, and bottom vertical alignment. The "_" attribute on a cell indicates that it is a table header.

    The examples below illustrate these attributes.

    textile input output

    Headings

    hx. (where x is 1 - 6)
    h1. Heading

    Heading

    h2(class). Heading with class

    Heading with class

    Paragraphs

    p=. Centered text

    Centered text

    p())(#id). Indented text with ID

    Indented text with ID

    Block quotes

    bq(class#id). Quote with class and ID
    Quote with class and ID
    bq[en]. English quote
    English quote

    Ordered lists

    {color: blue}# Attributes specified
    # before the first item
    # affect the whole list
    1. Attributes specified
    2. before the first item
    3. affect the whole list

    Unordered lists

    * Lists can have
    ## subitems or
    ## sublists
    * too
    • Lists can have
      1. subitems or
      2. sublists
    • too

    Footnotes

    fnx. (where x is 1 - 100)
    fn17. Footnote

    17 Footnote

    Tables

    |_. A|_. B|_. C|
    (dark). |very|simple|table|
    |<. left|=. center|>. right|
    |^{height:3em}. top|-. middle|~. bottom|
    A B C
    very simple table
    left center right
    top middle bottom

    Phrase modifier syntax:

    The class, ID, style, and language attributes described above also apply to the span phrase modifier as shown below.

    textile input output
    _emphasis_ emphasis
    __italic__ italic
    *strong* strong
    **bold** bold
    ??citation?? citation
    -delete text- deleted text
    +inserted text+ inserted text
    ^superscript^ superscript
    ~subscript~ subscript
    @code@ code
    %(class)span% span
    %{color:red;}span% span
    ==no textile== no textile
    "link text":url link text
    "link text(title)":url link text
    !imageurl!
    !imageurl(alt text)! alt text
    !imageurl!:url
    ABC(Always Be Closing) ABC
    Footnote reference[17] Footnote reference17
  • If you include a textual smiley in your post (see chart below), it will be replaced by a graphical smiley.
    Smileys
    SmileyAcronyms
    :):) :-) :smile:
    ;);) ;-) :wink:
    :(:( :-( :sad:
    :D:D :-D :lol:
    }:)}:) }:-) :evil:
    :P:P :-P :tongue:
    :O:O :-O :shocked:
    :?:? :-? :puzzled:
    8)8) 8-) :cool:
    :jawdrop::jawdrop:
    :sick::sick: :barf:
    :mr-t::mr-t:
    :twothumbs::twothumbs:
    :afro::afro:
    :alien::alien:
    :angel::angel: O:) O=)
    >:o>:o >=o :angry:
    :annoyed::annoyed:
    :antlers::antlers:
    :anxious::anxious:
    :argue::argue:
    :army::army:
    :artist::artist:
    :baby::baby:
    :balloon::balloon:
    :balloon2::balloon2:
    :balloon3::balloon3:
    :bandana::bandana:
    :batman::batman:
    :beadyeyes::beadyeyes:
    :beadyeyes2::beadyeyes2:
    :beam::beam:
    :beatnik::beatnik:
    :beatnik2::beatnik2:
    :behead::behead:
    :behead2::behead2:
    :bigcry::bigcry:
    :biker::biker:
    :blank::blank:
    :blush::blush:
    :bobby::bobby:
    :bobby2::bobby2:
    :bomb::bomb:
    :bomb2::bomb2:
    :book::book:
    :book2::book2:
    :bow::bow:
    :brood::brood:
    :bucktooth::bucktooth:
    :builder::builder:
    :builder2::builder2:
    :bulb::bulb:
    :bulb2::bulb2:
    :charming::charming:
    :cheesy::cheesy:
    :chef::chef:
    :chinese::chinese:
    :clown::clown:
    :computer::computer:
    :confused::confused:
    :cool::cool:
    :cool2::cool2:
    :cool3::cool3:
    :cool4::cool4: 8) 8-)
    :cowboy::cowboy:
    :crown::crown:
    :crowngrin::crowngrin:
    :cry::cry:
    :cry2::cry2:
    :curtain::curtain:
    :cyclist::cyclist:
    :daisy::daisy:
    :dead::dead:
    :deal::deal:
    :deal2::deal2:
    :devil::devil:
    :devilish::devilish:
    :disappointed::disappointed:
    :disguise::disguise:
    :dizzy::dizzy:
    :dizzy2::dizzy2:
    :dozey::dozey:
    :drummer::drummer:
    :drunk::drunk:
    :dunce::dunce:
    :dunce2::dunce2:
    :earmuffs::earmuffs:
    :ears::ears:
    :egypt::egypt:
    :elf::elf:
    :elvis::elvis:
    :embarassed::embarassed:
    :end::end:
    :evil::evil:
    :evil2::evil2:
    :evil3::evil3:
    :evilgrin::evilgrin:
    :fireman::fireman:
    :freak::freak:
    :furious::furious: @#$
    :furious2::furious2: @#$%
    :furious3::furious3: @#$%^
    :glasses::glasses:
    :glasses2::glasses2:
    :goofy::goofy:
    :gorgeous::gorgeous:
    :gossip::gossip:
    :greedy::greedy: :$ :-$ =$ =-$
    :grin::grin:
    :grin2::grin2:
    :grin3::grin3:
    :guitarist::guitarist:
    :hair::hair:
    :hair2::hair2:
    :hanged::hanged:
    :happy::happy:
    :happy2::happy2:
    :hat::hat:
    :hat2::hat2:
    :heart::heart:
    :helmet::helmet:
    :help::help:
    :hippy::hippy:
    :huh::huh:
    :huh2::huh2:
    :idea::idea: !:) !:-) !=) !=-)
    :idea2::idea2:
    :idea3::idea3:
    :iloveyou::iloveyou:
    :indian_brave::indian_brave:
    :indian_chief::indian_chief:
    :inquisitive::inquisitive:
    :jester::jester:
    :joker::joker:
    :juggle::juggle:
    :juggle2::juggle2:
    :karate::karate:
    :kid::kid:
    :kiss::kiss: :* :-* =* =-*
    :kiss2::kiss2:
    :klingon::klingon:
    :knife::knife:
    :laugh::laugh:
    :laugh2::laugh2:
    :laugh3::laugh3: :D :-D =D =-D
    :laugh4::laugh4:
    :leer::leer:
    :lips::lips:
    :lips2::lips2:
    :lipsrsealed::lipsrsealed:
    :lipsrsealed2::lipsrsealed2: :x :-x =x =-x
    :lost::lost:
    :love::love:
    :mad::mad:
    :mask::mask:
    :mean::mean:
    :mellow::mellow:
    :mickey::mickey:
    :moustache::moustache:
    :nice::nice:
    :no::no:
    :oops::oops:
    :operator::operator:
    :party::party:
    :party2::party2:
    :party3::party3:
    :pimp::pimp:
    :pimp2::pimp2:
    :pirate::pirate:
    :pleased::pleased:
    :policeman::policeman:
    :pumpkin::pumpkin:
    :punk::punk:
    :rifle::rifle:
    :rockstar::rockstar:
    :rolleyes::rolleyes:
    :rolleyes2::rolleyes2:
    :rolleyes3::rolleyes3:
    :rolleyes4::rolleyes4:
    :rolleyes5::rolleyes5:
    :sad::sad: :( :-( =( =-(
    :sad2::sad2:
    :sad3::sad3:
    :santa::santa:
    :santa2::santa2:
    :santa3::santa3:
    :scholar::scholar:
    :shame::shame: -.-
    :shifty::shifty:
    :shocked::shocked: :o :-o =o =-o
    :shocked2::shocked2:
    :shocked3::shocked3:
    :shout::shout:
    :shy::shy:
    :sick::sick:
    :sick2::sick2:
    :singer::singer:
    :skull::skull:
    :sleep::sleep:
    :sleeping::sleeping:
    :sleepy::sleepy:
    :smart::smart:
    :smartass::smartass:
    :smartass2::smartass2:
    :smash::smash:
    :smile::smile: :) :-) =) =-)
    :smiley::smiley:
    :smiley2::smiley2:
    :smitten::smitten:
    :smoking::smoking:
    :smug::smug:
    :smug2::smug2:
    :sneaky::sneaky:
    :snobby::snobby:
    :snore::snore:
    :sombrero::sombrero:
    :speechless::speechless: :! :-!
    :square::square: :] :-] [:-] [:]
    :stare::stare:
    :stars::stars:
    :stooge_curly::stooge_curly:
    :stooge_larry::stooge_larry:
    :stooge_moe::stooge_moe:
    :stop::stop:
    :stunned::stunned: O.O O_O
    :stupid::stupid:
    :sultan::sultan:
    :sunny::sunny:
    :surprised::surprised: :O :-O =O =-O
    :sweatdrop::sweatdrop:
    :sweetheart::sweetheart:
    :thinking::thinking:
    :thinking2::thinking2:
    :thumbsdown::thumbsdown:
    :thumbsup::thumbsup:
    :tiny::tiny:
    :tired::tired:
    :toff::toff:
    :toilet::toilet:
    :tongue::tongue:
    :tongue2::tongue2: :p :-p =p =-p :P :-P =P =-P
    :tongue3::tongue3:
    :uhoh::uhoh:
    :uhoh2::uhoh2:
    :undecided::undecided: :\ :-\
    :uneasy::uneasy: :/ :-/
    :vampire::vampire: :E :-E
    :vanish::vanish:
    :veryangry::veryangry: >:O
    :veryangry2::veryangry2:
    :vulcan::vulcan:
    :wacko::wacko:
    :wacky::wacky:
    :wall::wall:
    :whip::whip:
    :wideeyed::wideeyed:
    :wings::wings:
    :wink::wink: ;) ;-)
    :wink2::wink2:
    :wink3::wink3:
    :wiseguy::wiseguy:
    :worried::worried:
    :worried2::worried2:
    :wreck::wreck:
    :wry::wry:
    :xmas::xmas:
    :yes::yes:
    :zzz::zzz:
  • 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]
    • Override default autoplay setting: [video:http://www.youtube.com/watch?v=uN1qUeId autoplay:1]
    • Override default width and height:
      [video:http://www.youtube.com/watch?v=uN1qUeId width:X height:Y]
    • Align the video:
      [video:http://www.youtube.com/watch?v=uN1qUeId align:right]
Syndicate content