Compose tips

Text Formats

BBCode

  • Allowed HTML tags: >

    This site allows HTML content. While learning all of HTML may feel intimidating, learning how to use a very small number of the most basic HTML "tags" is very easy. This table provides examples for each tag that is enabled on this site.

    For more information see W3C's HTML Specifications or use your favorite search engine to find other sites that explain HTML.

    Tag DescriptionYou TypeYou Get

    Most unusual characters can be directly entered without any problems.

    If you do encounter problems, try using HTML character entities. A common example looks like & for an ampersand & character. For a full list of entities see HTML's entities page. Some of the available characters include:

    Character DescriptionYou TypeYou Get
    Ampersand&&
    Greater than>>
    Less than&lt;<
    Quotation mark&quot;"
  • You may quickly link to image nodes using a special syntax. Each image code will be replaced by thumbnail linked to full size image node. Syntax:

    [image:node_id align=alignment hspace=n vspace=n border=n size=label width=n height=n nolink=(0|1) class=name style=style-data node=id]

    Every parameter except node_id is optional.

    Typically, you will specify one of size, width, or height, or none of them. If you use size=label, where label is one of the image size labels specified on the image settings page, the size associated with that label will be used. The sizes "thumbnail", "preview", and "original" are always available. If you use width=n or height=n, the image will be scaled to fit the specified width or height. If you use none of them, the thumbnail image size will be used.

    If you specify nolink=1, no link will be created to the image node. The default is to create a link to the image.

    Alternatively, if you specify node=id, a link will be created to the node with the given id.

    The align, hspace, vspace, border, class, and style parameters set the corresponding attributes in the generated img tag.

  • 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.
  • You may link to files uploaded with the current node using special tags. The tags will be replaced by the corresponding files. For example: Suppose you uploaded three files (in this order):

    • imag1.png
    • file1.pdf
    • imag2.png
    [inline:imag1.png=test]
    will be replaced by <img src=imag1.png alt=test>
    [file:imag1.png=test]
    will be replaced by <a href=imag1.png>test</a>
    [attachment:file1.pdf=test]
    will be replaced by <a href=file1.png>test</a>

  • If you include a textual smiley in your post (see chart below), it will be replaced by a graphical smiley.
    SmileyAcronyms
    *biggrin**biggrin* :-D :D +D =D :biggrin:
    *blum3**blum3* :-P :P :-p :p +P =P +p =p :-b :b +b =b :tongue:
    *air_kiss**air_kiss* *KISSED*
    *dash1**dash1* *DASH* *WALL*
    *diablo**diablo* ]:-> }:-> ]:> }:> >:-] >:] (6) :diablo: *DIABLO*
    *ROFL**ROFL* *ROFL* :ROFL: :rofl: :-)))) :-))))) :-)))))) :)))) :))))) :)))))) =)))) =))))) =))))))
    *acute**acute* ;D *ACUTE*
    *lol**lol* *LOL* :-)) :)) =)) +)) :-))) :))) :lol:
    *dance4**dance4* *DANCE* :dance:
    *drinks**drinks* *DRINK* :drink:
    *pardon**pardon* *PARDON* =] :PARDON: :pardon:
    *crazy**crazy* *CRAZY* :crazy:
    *beee**beee* :-\ :-/ :\ :-\
    *yahoo**yahoo* *YAHOO* *YAHOO!* :YAHOO: :yahoo:
    *wacko**wacko* %) %-) :-$ :$ :wacko: :WACKO:
    *ok**ok* *OK*
    *aggressive**aggressive* >:o >:O >+O >:o >+o :-@ :angry:
    *kiss2**kiss2* :-* :* :-{} :{} +{} ={} ^.^ :kiss: *KISS*
    *bye**bye* *BYE*
    *angel**angel* O:-) O:) O+) O=) 0:-) 0:) 0+) 0=) (A) (a)
    *pleasantry**pleasantry* *db* :db:
    *stop**stop* *STOP* :stop:
    *fool**fool* :-| :| =| :-|
    *music2**music2* [:-} [:} [:-}
    *dirol**dirol* 8-) 8) B) :COOL: :cool:
    *mail1**mail1* *WRITE* *MAIL*
    *cray2**cray2* :'( :'-(
    *i-m_so_happy**i-m_so_happy* *HAPPY* :happy: :HAPPY: :Happy: ^^
    *shok**shok* =-O =O =-o =0 O_O O_o o_O O_0 o_0 0_O 0_o
    *bomb**bomb* @=
    *sorry2**sorry2* *SORRY* :sorry:
    *yes3**yes3* *YES*
    *preved**preved* *HELLO* *PREVED* *PRIVET* *HI*
    *secret**secret* :-X :-x X: x: :-# :# :secret:
    *new_russian**new_russian* \m/ \M/
    *clapping**clapping* *BRAVO* :BRAVO: :bravo: :clapping:
    *mosking**mosking* *JOKINGLY* 8P 8p
    *boredom**boredom* *TIRED* |-0 :boredom:
    *man_in_love**man_in_love* *IN_LOVE*
    *scratch_one-s_head**scratch_one-s_head* *SCRATCH*
    *give_rose**give_rose* @}->-- @}-:-- @>}--,-`--- (F) (f) @}->--
    *sad**sad* :-( :( +( =( :-(( :(( +(( =(( :sad:
    *smile**smile* :-) :) +) =) :smile:
    *good**good* :GOOD: :good: *GOOD* *THUMBS_UP*
    *kiss3**kiss3* *KISSING*
    *unknw**unknw* *DONT_KNOW* *UNKNOWN* :HZ: :hz:
    *wink**wink* ;-) ;) ^_~ :wink:
    *blush**blush* :-[ :[ ;'> ;-. :blush:
    *bad**bad* :-! :! :-~ ;-~ :(~ +(~ =(~ :bad:
    *nea**nea* *NO* *NO*
    *help**help* *HELP*
  • Allowed BBCode tags:

    Tag descriptionYou TypeYou Get
    [abbr]
    Identifies the content as an abbreviation and displays the full meaning in a tooltip.
    [abbr=et cetera]etc.[/abbr]etc.
    [acronym]
    Puts a tooltip over the contained text, which displays the full meaning of the acronym.
    [acronym=PHP: Hypertext Preprocessor]PHP[/acronym]PHP
    [b]
    Bold text
    [b]bold[/b]bold
    [center]
    Aligns text in the center.
    [center]Centered text[/center]

    Centered text

    [code]
    Formats the content text as code, in Monospace and with a grey box around it. BBCode tags within this tag will not be parsed.
    [code]def fib (n):
    a, b = 0, 1
    for i in xrange(n):
    a, b = b, a + 1
    return a[/code]
    def fib (n): a, b = 0, 1 for i in xrange(n): a, b = b, a + 1 return a
    [color]
    Changes the color. You may enter a color word (red) or a hex code with hash sign (#ff0)
    [color=#f80]Orange text[/color]Orange text
    [define]
    Formats a definition list.
    [define]
    --verbose:This will start the program with full debug messages.
    --in=IN:This will set the input file to IN.
    --out=OUT:This will write output to OUT.
    [/define]
    --verbose
    This will start the program with full debug messages.
    --in=IN
    This will set the input file to IN.
    --out=OUT
    This will write output to OUT.
    [font]
    Changes the font of the text.
    [font=arial]Text[/font]Text
    [h1]
    Level 1 heading. You may want to restrict access to the level 1 and level 2 headings for ordinary users.
    [h1]Title[/h1]

    Title

    [h2]
    Level 2 heading. Use this as the top level on non-node content, as level 1 is used by the site header.
    [h2]Volume[/h2]

    Volume

    [h3]
    Level 3 heading. Use this as the top level within nodes as levels 1 and 2 are used by the site and node title.
    [h3]Chapter[/h3]

    Chapter

    [h4]
    Level 4 heading.
    [h4]Section[/h4]

    Section

    [h5]
    Level 5 heading.
    [h5]Sub-section[/h5]
    Sub-section
    [h6]
    Level 6 heading.
    [h6]Sub-sub-section[/h6]
    Sub-sub-section
    [hr]
    Horizontal divider.
    [hr]
    [i]
    Italic text
    [i]italic[/i]italic
    [img]
    Displays a picture. The size may be set by entering widthxheight as the only option.
    [img=65x73]
    /themes/bartik/logo.png
    [/img]
    IMAGE(
/themes/bartik/logo.png
)
    [justify]
    Aligns text as a justified block.
    [justify]Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.[/justify]

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

    [left]
    Aligns text on the left side.
    [left]Left-aligned text[/left]

    Left-aligned text

    [list]
    Formats a list. ol and ul may be entered as an option, making the list items numbered or non-numbered.
    [list=ol]
    [*]Apples
    [*]Oranges
    [*]Bananas
    [/list]
    1. Apples
    2. Oranges
    3. Bananas
    [node]
    Links to a certain node. Unlike a [url] tag, this is passed through the linking function and returns the alias of the node.
    [node=1]Node #1[/node]Node #1
    [php]
    This colors the syntax of PHP code using the in-built PHP highlighting library.
    [php]<?php
    echo 'Hello World' . 5 . $variable;
    ?>[/php]
    <?php
     
    echo 'Hello World' $variable;
    ?>
    [quote]
    Formats a quote.
    [quote]This text is quoted.[/quote]
    This text is quoted.
    [right]
    Aligns text on the right side.
    [right]Right-aligned text[/right]

    Right-aligned text

    [s]
    Stricken-through text
    [s]this sentence is false[/s]this sentence is false
    [size]
    Changes the text size. This requires the unit (pt, px, em) of the size.
    [size=16pt]Text[/size]Text
    [sub]
    Sets text to be smaller and below the line.
    a[sub]i,j[/sub]ai,j
    [sup]
    Sets text to be set smaller and above the line.
    x[sup]2[/sup]x2
    [u]
    Underlined text
    [u]underlined[/u]underlined
    [url]
    Formats a Hyperlink.
    [url=http://drupal.org]Drupal.org[/url]Drupal.org
    [wikipedia]
    Formats a link to Wikipedia, the free encyclopedia.
    [wikipedia]Drupal[/wikipedia]Drupal
    [youtube]
    Embed a Youtube video.
    [youtube=224x126]rF1X12PE6PY[/youtube]

Plain text

  • No HTML tags allowed.
  • You may link to files uploaded with the current node using special tags. The tags will be replaced by the corresponding files. For example: Suppose you uploaded three files (in this order):

    • imag1.png
    • file1.pdf
    • imag2.png
    [inline:imag1.png=test]
    will be replaced by <img src=imag1.png alt=test>
    [file:imag1.png=test]
    will be replaced by <a href=imag1.png>test</a>
    [attachment:file1.pdf=test]
    will be replaced by <a href=file1.png>test</a>

  • Web page addresses and e-mail addresses turn into links automatically.
  • 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.