PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
[RESOLVED] Code tags-VBForums
Results 1 to 3 of 3

Thread: [RESOLVED] Code tags

  1. #1

    Thread Starter
    Hyperactive Member mbutler755's Avatar
    Join Date
    May 2008
    Location
    Peoria, AZ
    Posts
    417

    Resolved [RESOLVED] Code tags

    When posting VB code, I can only located the tags for CODE, PHP and HTML.

    How do I post VB code and have highlights? I can't seem to figure it out.
    Regards,

    Matt Butler, MBA, BSIT/SE, MCBP
    Owner, Intense IT, LLC
    Find us on Facebook
    Follow us on Twitter
    Link up on LinkedIn
    mb (at) i2t.us

    CODE BANK SUBMISSIONS: Converting Images to Base64 and Back Again

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    102,949

    Re: Code tags

    In the advanced editor there is a button for HIGHLIGHT tags and it prompts you for an option. If you posting VB6 code, the option should be "vb". Use "vb.net" for VB.NET code. You can also use "sql" and others. E.g. this:

    [highlight=vb.net]Dim str As String = "Hello World"[/highlight]

    produces this:
    vb.net Code:
    1. Dim str As String = "Hello World"
    Just note that the HIGHLIGHT tag doesn't support other formatting internally. That means that you must use [code] tags if you want to use bold, underline or colouring on specific parts of your code.

  3. #3

    Thread Starter
    Hyperactive Member mbutler755's Avatar
    Join Date
    May 2008
    Location
    Peoria, AZ
    Posts
    417

    Re: Code tags

    Thank you.
    Regards,

    Matt Butler, MBA, BSIT/SE, MCBP
    Owner, Intense IT, LLC
    Find us on Facebook
    Follow us on Twitter
    Link up on LinkedIn
    mb (at) i2t.us

    CODE BANK SUBMISSIONS: Converting Images to Base64 and Back Again

Tags for this Thread

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width