Skip navigation

Help: Comcode

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 list to provide a frame of reference – your lists would have text rather than numbers.

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 :)

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

Shortcuts

Shortcuts are also entered just by inputting their code (c)

(c)©
(r)®


Code blocks

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

PHP code

function ocp()
{
    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.

[img="Logo"]http://www.nv33.com/themes/default/images/comcode.png[/img] Logo
[thumb="Logo"]http://www.nv33.com/themes/default/images/comcode.png[/thumb]


Security

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

Normallythistextwouldbewrappedwhenthereisaspaceorafullstopby
thebrowseriftexthasnoneoftheseitruinsthelayoutofthepagesitfor
ciblywrapstextforyou.

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

[url="This is a link"]http://www.nv33.com[/url]This is a link
[email="My E-Mail"]fake_address@example.com[/email]My E-Mail
[page="cms:cms"]Content Management[/page]Content Management


Boxes

[box="my table"]Testing boxes[/box]

my table

Testing boxes


Formatting

[b]text[/b]text
[u]text[/u]text
[i]text[/i]text
[s]text[/s]text
[font param="Helvetica" size="12" color="red"]text[/font]text
----------------------



Scientific notation

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 re-arrange 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, flash animations, 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

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

Expand: Secret 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 rendered (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
Embed Facebook videos Embed Facebook videos into your content. [facebook_video]http://www.facebook.com/video/video.php?v=10150307159560581[/facebook_video]
Embed YouTube videos Embed YouTube videos into your content. [youtube]http://www.youtube.com/watch?v=ZDFFHaz9GsY[/youtube]