How to Post Code on the Forum
Forum » The Community / Have Your Question Answered » How to Post Code on the Forum
started by: hartnellhartnell
on: 1205637457|%e %b %Y, %H:%M %Z|agohover
number of posts: 1
rss icon RSS: new posts
summary:
thanks u9
How to Post Code on the Forum
hartnellhartnell 1205637457|%e %b %Y, %H:%M %Z|agohover

Posting code is easy.

Short Snippets

If you have a short snippet just include the code between these two wiki-syntax tags :

[[code]]
[[/code]]

For example, this

[[code]]
someFunction("blarg!")
[[/code]]

appears like this :

someFunction("blarg!")

Longer Code

Collapsible Code Blocks

You can create a collapsible code block using this syntax :

[[collapsible show="Show Code +" hide="Hide Code -" hideLocation="both"]]
[[code]]
; code here
[[/code]]
[[/collapsible]]

This looks like :

Tabs

You can post longer snippets as above, but to save space you can use [[tabview]]. The format is :

[[tabview]]
[[tab Post]]
My code is blah blah.
[[/tab]]
[[tab Code]]
[[code]]
' don't kill ma!
If person_entering_door = mom Then
KillThem False
Else
KillThem True
EndIf
[[/code]]
[[/tab]]
[[/tabview]]

This appears as :

My code is blah blah.

last edited on 1238517984|%e %b %Y, %H:%M %Z|agohover by hartnell + show more
unfold How to Post Code on the Forum by hartnellhartnell, 1205637457|%e %b %Y, %H:%M %Z|agohover
new post