How to Post Code on this Forum?

Monkey Forums/Monkey Programming/How to Post Code on this Forum?

DrT(Posted 2012) [#1]
I've seen code posted on this forum: black box, green text, formatted, etc.

How do you do this?


GC-Martijn(Posted 2012) [#2]
[code]

[/code]


DrT(Posted 2012) [#3]
Now I know. Thanks for your help.


DrT(Posted 2012) [#4]
Test

Function Main:Int()
  Return 0
End



DrT(Posted 2012) [#5]
This works when creating a new post. It doesn't seem to work when editing an existing post (see 2nd post on http://www.monkeycoder.co.nz/Community/posts.php?topic=220).

UPDATE:
Made two typos. See Goodlookinguy's post below. All is well now.


Goodlookinguy(Posted 2012) [#6]
Two things wrong here, you meant this link http://www.monkeycoder.co.nz/Community/posts.php?topic=2206 and you put the wrong slash. You put a backslash, when it was supposed to be a forward slash.


Beaker(Posted 2012) [#7]
Same codes as here:
http://www.blitzmax.com/faq/faq_entry.php?id=2

Please use codebox for long chunks of code.

Also you can link inside the forum (which doesn't care what url you use) like this:
<a /Community/posts.php?topic=2206>Click here</a>

Replace < with [ and > with ]. Looks like this:
Click here


DrT(Posted 2012) [#8]
Goodlookinguy, Thanks for catching my typos. I need to stop multitasking today.

Beaker, Thanks for posting all the codes. I knew that Monkey originated from Blitzmax but I didn't think to search there.

Thanks again.


therevills(Posted 2012) [#9]
For some reason the Monkey forum is a step backwards from the Blitz forum... no preview button and no show codes button :?