Results 1 to 4 of 4

Thread: Forum Tip: Posting code in messages

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2008
    Location
    Round Rock, TX
    Posts
    8,842

    Lightbulb Forum Tip: Posting code in messages

    This being a technical forum, lots of folks want to post code in their messages. vBulletin has a special tag for this: [code]. 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.




    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.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	vBulletinCodeButton.jpg 
Views:	1610 
Size:	26.8 KB 
ID:	2333  
    Last edited by Dennis Piccioni; 31-Mar-2009 at 09:19 AM.

Similar Threads

  1. Source code compare tip
    By wila in forum Code Library
    Replies: 7
    Last Post: 29-Oct-2017, 05:16 PM
  2. Forum Tip: Inserting images in forum posts
    By Dennis Piccioni in forum Forum Q&A
    Replies: 27
    Last Post: 9-Nov-2015, 06:36 AM
  3. Replies: 9
    Last Post: 5-Aug-2009, 03:34 PM
  4. New Event Posting
    By David King in forum Windows Applications
    Replies: 0
    Last Post: 31-Oct-2007, 09:08 AM
  5. Posting in Plain Text
    By Garret Mott in forum Windows Applications
    Replies: 0
    Last Post: 4-Jan-2006, 11:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •