Comcode help

Comcode is used for formatting input data (the data marked as being Comcode).


The title for this page and smaller title below were generated using [title]Comcode help[/title] and [title="2"]Lists[/title].

Lists

The list shown on the right is generated using the Comcode below.
Numbers are used on the example list to provide a frame of reference – your lists would have text rather than numbers.

Code Result

Code

A list
 - 1
 - 2
  - 2.1
   - 2.1.1
    - 2.1.1.1
  - 2.2
 - 3
A list
  • 1
  • 2
    • 2.1
      • 2.1.1
        • 2.1.1.1
    • 2.2
  • 3

Emoticons

Emoticons are inputted just by entering the emoticon code, e.g. :).

Code Image Code Image Code Image Code Image
:reallybadday: :reallybadday: :constipated: :constipated: :upsidedown: :upsidedown: :depressed: :depressed:
:puppyeyes: :puppyeyes: :christmas: :christmas: :offtopic: :offtopic: :rolleyes: :rolleyes:
:birthday: :birthday: :whistle: :whistle: :goodbye: :goodbye: :fishing: :fishing:
:thumbs: :thumbs: :shutup: :shutup: :cyborg: :cyborg: :hippie: :hippie:
:ninja2: :ninja2: :rockon: :rockon: :sinner: :sinner: :guitar: :guitar:
:cowboy: :cowboy: :ninja: :ninja: :shake: :shake: :drool: :drool:
:devil: :devil: :party: :party: :sarcy: :sarcy: :angel: :angel:
:fight: :fight: :tired: :tired: :cool: :cool: :hand: :hand:
:sick: :sick: :nerd: :nerd: :king: :king: :idea: :idea:
:boat: :boat: :whew: :whew: :dry: :dry: :wub: :wub:
:lol: :lol: :zzz: :zzz: :nod: :nod: :hug: :hug:
:'( :'( O_o O_o ^_^ ^_^ (K) (K)
:P :P :( :( :) :) :o :o
;) ;) :$ :$ :| :| :D :D
:S :S :@ :@
Code Image
:reallybadday: :reallybadday:
:constipated: :constipated:
:upsidedown: :upsidedown:
:depressed: :depressed:
:puppyeyes: :puppyeyes:
:christmas: :christmas:
:offtopic: :offtopic:
:rolleyes: :rolleyes:
:birthday: :birthday:
:whistle: :whistle:
:goodbye: :goodbye:
:fishing: :fishing:
:thumbs: :thumbs:
:shutup: :shutup:
:cyborg: :cyborg:
:hippie: :hippie:
:ninja2: :ninja2:
:rockon: :rockon:
:sinner: :sinner:
:guitar: :guitar:
:cowboy: :cowboy:
:ninja: :ninja:
:shake: :shake:
:drool: :drool:
:devil: :devil:
:party: :party:
:sarcy: :sarcy:
:angel: :angel:
:fight: :fight:
:tired: :tired:
:cool: :cool:
:hand: :hand:
:sick: :sick:
:nerd: :nerd:
:king: :king:
:idea: :idea:
:boat: :boat:
:whew: :whew:
:dry: :dry:
:wub: :wub:
:lol: :lol:
:zzz: :zzz:
:nod: :nod:
:hug: :hug:
:'( :'(
O_o O_o
^_^ ^_^
(K) (K)
:P :P
:( :(
:) :)
:o :o
;) ;)
:$ :$
:| :|
:D :D
:S :S
:@ :@

Shortcuts

Shortcuts are also entered just by inputting their code, e.g. (c).

Code Result
(c)©
(r)®

Code blocks

Code Result
[code="php"]
function cms()
{
   echo "Example PHP syntax highlighting";
}
[/code]

Code (php)

function cms()
{
        echo "Example PHP syntax highlighting";
}
 

Images

You can put inline images into your text easily and quickly, with the [img] tag. There is also a thumbnail tag [thumb] which will show (and cache) a thumbnail of an image. If the tag is given a URL as a parameter as well as the main URL, then that will be used as the thumbnail.

Code Result
[img="Logo"]themes/default/images/no_image.png[/img] Logo
[thumb="Logo"]themes/default/images/no_image.png[/thumb]

Security

Long text which isn't naturally breakable into lines is forced into pieces.

JavaScript script tags, onX handlers and URLs will all be filtered/blocked. Don't use them unless you want the staff to be alerted to a suspected hacking attempt!

Links

Code Result
[url="This is a link"]https://composr.app[/url]This is a link
[email="My E-Mail"][email protected][/email]My E-Mail
[page="cms:cms"]Content Management[/page]Content Management

Boxes

You can put things in boxes. For example:

Code

[box="My Box"]Testing boxes[/box]
…produces:

My Box

Testing boxes


Formatting

Code Result
[b]text[/b]text
[u]text[/u]text
[i]text[/i]text
[s]text[/s]text
[font param="Helvetica" size="3" color="red"]text[/font]text
---------------------- ———————-

Mathematical notation

Code Result
a[sub]2[/sub]a2
a[sup]2[/sup]a2

Attachments

You can use attachments with a number of different Comcode forms. The attachment tags are automatically inserted into your Comcode when you choose an attachment, and you may rearrange them to move the attachments around; you may also wish to change the width, height, description, or set the type to 'download'. After adding your attachments you may re-use them in other pieces of Comcode, and the attachment will exist until all references are deleted.

Attachments may be movies, audio, images, or general downloads. The website automatically decides how to treat your attachment.

Users may add attachments according to their quota, and re-use other people's attachments according to privileges.

Advanced

Code Result
[hide="Secret"]This is an example of hidden text.[/hide]

Secret

[reference type="url" param="Wikipedia"]http://wikipedia.org[/reference]

Reference source: Wikipedia

[quote param="Philip"]This is an example of a quote.[/quote]

Philip said

This is an example of a quote.
[staff_note]This isn't displayed (not even for staff), but is saved. Staff can view it when editing the Comcode.[/staff_note]


Custom Comcode tags

These Custom Comcode tags have been added by the staff…
Title Description Example
Encrypt Store the contents of the tag as encrypted in the database. [encrypt]Text to encrypt[/encrypt]
Flip Provide two-sided square flip spots. [flip="Back"]Front[/flip]
Self-destruct The contents will not appear in notifications, and, for private topic and support ticket posts, will self-destruct after 30 days. [self_destruct]Text to self-destruct[/self_destruct]