PDA

View Full Version : Forum Tip: Posting code in messages



Dennis Piccioni
6-Mar-2009, 09:26 AM
This being a technical forum, lots of folks want to post code in their messages. vBulletin has a special tag for this:
. You can embed code inside this tag to ensure it looks like code when viewed and that it retains it's formatting (particularly leading spaces for block indentations).

Example (no code tags):

Function Foo Returns Boolean
Boolean bVoid
Function_Return bVoid
End_Function
Example (with code tags):

[code]
Function Foo Returns Boolean
Boolean bVoid
Function_Return bVoid
End_Function

The easiest way to add the correct tags around your code is to select it and then click on the # button in the editor to wrap the tags around the selected text.

http://support.dataaccess.com/Forums/attachment.php?attachmentid=2333&stc=1&d=1236351002


Note: The # button is not available in the Quick Reply editor, you have to use the Advanced editor. Click the Go Advanced button a the bottom of the Quick Reply editor to switch editors.

DennisTest
29-Jun-2009, 09:45 AM
Move along people, nothing to see here... Just testing. :)

Gregg Finney
30-Jun-2009, 01:43 PM
Ok

seanyboy
1-Jul-2009, 03:41 AM
Will do.