Results 1 to 5 of 5

Thread: C++ Highlight Brace issue

  1. #1

    Thread Starter
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    C++ Highlight Brace issue

    I'm not sure what else would cause an issue, but when you use a [ in the highlight=C++ tag, it converts it as shown below.

    c++ Code:
    1. char str [LINE_LENGTH];

    If you put two in a row, it only seems to catch the first, though. It also seems to omit it if you put it in a comment


    c++ Code:
    1. //char str [LINE_LENGTH];

  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: C++ Highlight Brace issue

    Quote Originally Posted by kfcSmitty
    I'm not sure what else would cause an issue, but when you use a [ in the highlight=C++ tag, it converts it as shown below.
    Which highlight code is causing problems the first or second example?
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  3. #3

    Thread Starter
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Re: C++ Highlight Brace issue

    The first one is converting [ to &#91 (with a semi colon at the end, but the forums keeps converting it on me), whereas the second one with the comment, displays it correctly.

  4. #4
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: C++ Highlight Brace issue

    That's the HIGHLIGHT tag itself converting it. Try it with C# too. Same thing will happen.

    I believe this issue was posted before and admins/mods are aware of this.
    Show Appreciation. Rate Posts.

  5. #5
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: C++ Highlight Brace issue

    highlight in code tags:
    Code:
    c++ Code:
    1. char str [LINE_LENGTH];
    code in highlight tags:
    c++ Code:
    1. [code]
    2.     char str [LINE_LENGTH];
    3. [/code]


    Edit:

    It doesn't help if you wrap the whole thing in code tags either highlight tags inside code tags or the other way around.
    Last edited by Nightwalker83; Feb 21st, 2009 at 02:10 AM.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

Posting Permissions

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



Click Here to Expand Forum to Full Width