Results 1 to 10 of 10

Thread: CSharp code Highlight parser not working properly

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Exclamation CSharp code Highlight parser not working properly

    The code highlighter is messing up the left array bracket.

    int[] n = new int[5];


    csharp Code:
    1. int[] n = new int[5];
    Last edited by wey97; Dec 31st, 2007 at 10:52 AM.

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

    Re: CSharp code Highlight parser not working properly

    Yes, this was also brought up about the C++ highlight tags.

    See this Forum Feedback thread.

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: CSharp code Highlight parser not working properly

    That is something that we are aware of (partly due to the thread Hack linked to), and will be fixed at some point - but unfortunately not as soon as we would like, because the corrections to the Highlight tags are being done by a moderator on a voluntary basis (so will only happen as his free time allows).

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

    Re: CSharp code Highlight parser not working properly

    The vBulletin Code Parser i posted in my first post (in the link provided by Hack) is probably the best solution i have seen for that problem so far. Very easy to use as well

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

    Re: CSharp code Highlight parser not working properly

    Quote Originally Posted by Paul M
    The vBulletin Code Parser i posted in my first post (in the link provided by Hack) is probably the best solution i have seen for that problem so far. Very easy to use as well
    Yep...sure is.

    There are two reasons I posted that link.

    One was to let the OP know that the problem has been reported, and two, to provide him with your input!

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

    Re: CSharp code Highlight parser not working properly

    Two birds with one stone nice

    Was just wondering the Third Party control (The Highlight Tag) has the problem been fixed? But the version of the control just doesn't work with the current vBulletin version?

  7. #7
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: CSharp code Highlight parser not working properly

    It's not a problem with the highlighting algorithm, it's a bug with the vBulletin adapation, which hasn't been updated by its author.

    I was the one working on the tag for this site and so "when time allows" the issues (highlighting line numbers; nested BB code not working; copy and paste producing blank lines; left bracket to entity encoding; many keywords uncoloured) will be fixed.

  8. #8
    Lively Member
    Join Date
    Apr 2010
    Posts
    121

    Re: CSharp code Highlight parser not working properly

    What about something along the lines of this: http://www.vbulletin.org/forum/showthread.php?t=254418

    Even I reckon our current "Code" Embbeding system is dated and outright UGLY!

    -jD

    EDIT: OMG! SO SORRY FOR BUMPING THIS THREAD!!! Didn't realise it twas' this old!
    Last edited by jduncanator; Jan 27th, 2012 at 09:23 PM. Reason: Opps, Thread Bump Apology

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

    Re: CSharp code Highlight parser not working properly

    We will be migrating to new servers soon (within a month). At that time we will be upgrading to a newer version of vBulletin. Until then, we aren't likely to add new add-ins or make any big changes.

    Once we make the move (which will be clear because the newest version is a little different), feel free to bring this issue back up.

    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)

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

  10. #10
    Lively Member
    Join Date
    Apr 2010
    Posts
    121

    Re: CSharp code Highlight parser not working properly

    ok i really like that plugin and use it on my site, just suggesting it tho coz the current one sucks!

    -jD

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