We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexDiscussionGeneral Discussion,  Status › How to format code for discourse
Page Index Toggle Pages: 1
How to format code for discourse (Read 1127 times)
How to format code for discourse
Jan 27th, 2008, 5:49pm
 
Here's a quick overview on the most common ways to format your posts.
!! You have to leave out the extra spaces within the []. !!

Add code:
[ code ]print("hello world");[ /code ]

Code:
print("hello world"); 



Add code with full syntax-coloring:
In Processing, go to the menubar > Tools > Copy for Discourse. Paste into your post, which results in...

Quote:

print("hello world");


Add a link:
[ url=http://www.processing.com ]Processing[ /url ]
Processing

[ url ]http://www.processing.com[ /url ]
http://www.processing.com


Text formatting:
[ b ]bold[ /b ] - Text bill be bold
[ i ]italic[ /i ] - Text will be italic
[ s ]strikethrough[ /s ] - Text will be strikethrough


Post an image:
[ img ]http://processing.org/img/processing_beta_cover.gif[ /img ]

...




(Admins, if you think this list is useful go ahead and reuse it to your liking. Maybe make a sticky out of it, so people can link to it. Oh, and if you know a way around the "extra-space-in-the-[]-hack", let me know.)
Page Index Toggle Pages: 1