Results 1 to 15 of 15

Thread: C++ code open square bracket

  1. #1

    Thread Starter
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    C++ code open square bracket

    Howdy,

    The open square bracket in C++ highlighted code doesn't work.. consider:

    int blah[4];

    .. in normal text.. then:
    C++ Code:
    1. int blah[4];
    ..in highlight.

    FIX PLEASE

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  2. #2
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: C++ code open square bracket

    Yea it would be nice to have a fix on the site but you can use the following application for now until it is fixed.

    Coloring your code in vBulletin Posts

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: C++ code open square bracket

    Plain Code Tags also work well.
    Code:
    int blah[4];

  4. #4

    Thread Starter
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: C++ code open square bracket

    Quote Originally Posted by Hell-Lord
    Yea it would be nice to have a fix on the site but you can use the following application for now until it is fixed.

    Coloring your code in vBulletin Posts
    Cheers

    Quote Originally Posted by Hack
    Plain Code Tags also work well.
    Code:
    int blah[4];
    ..but it doesn't look as pretty

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: C++ code open square bracket

    Quote Originally Posted by chemicalNova
    ..but it doesn't look as pretty
    You are kidding, right?

  6. #6

    Thread Starter
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: C++ code open square bracket

    Quote Originally Posted by Hack
    You are kidding, right?
    I'll admit I think code without syntax highlighting is U.G.L.Y.. but I didn't think my request was all that hard.. surely, instead of the HTML code, its quickly changeable to return the actual character.. I'm no PHP guru, but it can't be too difficult

    Basically, the reason I requested this be fixed.. is I can see ALOT of people posting questions in the C++ section, receiving replies by people who use the highlight tags, and then complaining afterwards for the code being wrong (when its correct.. they've just copied and pasted it with the HTML in there). I figure it'll save, not alot, but a few headaches at least.

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: C++ code open square bracket

    None of us is saying the your request is over the top. We are merely supplying some work arounds that you can employ until such time as this is addressed.

  8. #8

    Thread Starter
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: C++ code open square bracket

    Quote Originally Posted by Hack
    None of us is saying the your request is over the top. We are merely supplying some work arounds that you can employ until such time as this is addressed.
    Oh no problem then, I thought you thought I was being over-bearing

    All is well.. I will continue to highlight until its fixed.. but yeah.. thanks

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  9. #9
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: C++ code open square bracket

    Quote Originally Posted by chemicalNova
    I'll admit I think code without syntax highlighting is U.G.L.Y...
    If you ask me then current "highlighting" tags make it ugly for any language - ordinary CODE ones at least make code to appear properly (and also easy copy/paste without special work around) which is much more important than colors .
    Code:
    // some comments
    Int blah[4];
    My 2c anyway...

  10. #10
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614

    Re: C++ code open square bracket

    The highlight tag is a third party add-in.....
    That decreases the likelihood that we can get a fix....

    Brad!
    Have you given out your reputation points today? Select the Rate This Post link to give points for good posts!
    -------------------------------------------------------------
    Brad! Jones
    Lots of Software, LLC
    (I wrote: C Programming in One Hour a Day) (Dad Jokes Book) (Follow me on Twitter)

    --------------------------------------------------------------

  11. #11

    Thread Starter
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: C++ code open square bracket

    Quote Originally Posted by brad jones
    The highlight tag is a third party add-in.....
    That decreases the likelihood that we can get a fix....

    Brad!
    You can't just edit it? I thought it was just a whole bunch of PHP sitting around somewhere on the web server

    Oh well.. guess I'll make do for now

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  12. #12
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: C++ code open square bracket

    I'm sure the third party vendor has some sort of editing restriction in place.

  13. #13
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: C++ code open square bracket

    Quote Originally Posted by brad jones
    The highlight tag is a third party add-in.....
    That decreases the likelihood that we can get a fix....

    Brad!
    I thought it came with the forum software, I really did.
    In this case we can do something much better - we have plenty of talents here!
    It could be an open source project so everyone who's interested will contribute.
    It could also be built as an Add-In and most importantly you will have the source right in your hands - maintenance wise it will be a breeze.

    I hope you say YES, Brad.

  14. #14
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: C++ code open square bracket

    Here is my shot for a solution. The syntax highlighter i posted in my first post (in this topic) is there anyway something like that could be made entirely in PHP and installed as part of the forums I am not to sure about PHP and all that web development but is able to be done?

  15. #15
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614

    Re: C++ code open square bracket

    The current version of vBulletin uses an 'add-in' system. We have installed an add-in to do the Highlighting. If you guys write and test a highlight add-in that works cleaner, then Joe can look at replacing the current one with the one you write. If you do it as an open source project on this forum, that would be even better

    Brad!
    Have you given out your reputation points today? Select the Rate This Post link to give points for good posts!
    -------------------------------------------------------------
    Brad! Jones
    Lots of Software, LLC
    (I wrote: C Programming in One Hour a Day) (Dad Jokes Book) (Follow me on Twitter)

    --------------------------------------------------------------

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