Results 1 to 35 of 35

Thread: VB.NET syntax highlighting?[Resolved]

  1. #1

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    VB.NET syntax highlighting?[Resolved]

    I have no idea how difficult it is to add some of the VB.NET (and probably C#.NET also) language keywords to the previous VB code highlighting . You know, just to identify them in blue color . I believe this would make VB.NET Forum most updated and would make the members more impressed.


    Some of the new keywords :[the ones not in blue]

    VB Code:
    1. Friend
    2. Protected
    3. Overloads
    4. Interface
    5. Implements
    6. MustInherit
    7. NotInheritable
    8. Overrides
    9. MustOverride

    Thanks .
    Last edited by Pirate; Jul 30th, 2003 at 11:26 AM.

  2. #2
    Hyperactive Member Hampster's Avatar
    Join Date
    Feb 2001
    Location
    On my hamster wheel.
    Posts
    374
    You forgot Shared

  3. #3

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Yea , I didn't list them all I know maybe they will refuse to fix this .

  4. #4

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Why mods didn't reply yet ??

  5. #5
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Adding hacks, modifying current hacks, or modifying the current board code is frowned upon around here, because they don't want to have to do it again when they update the forum software (bleh).

    And an Administrator would probably have to do this, not a Moderator.

    So...Brad...Gus?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  6. #6
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    It looks to me as if Brad is trying to implement a solution as we speak: http://www.vbforums.com/showthread.p...hreadid=253802
    My evil laugh has a squeak in it.

    kristopherwilson.com

  7. #7

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    ...........................................

  8. #8
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614
    Originally posted by The Hobo
    It looks to me as if Brad is trying to implement a solution as we speak: http://www.vbforums.com/showthread.p...hreadid=253802

    I've hacking the hack, but it isn't happening. I've made the appropriate change to add the list of new terms, but it isn't working. I'm going to let it sit and look at it again tomorrow.

    Brad



    If I can't do it, then it won't happen until after the upgrade of vBulletin.
    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)

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

  9. #9

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Hmm , When are you going to update it ??

  10. #10
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614
    Originally posted by Pirate
    Hmm , When are you going to update it ??
    This (the date) is in the hands of the Jupitermedia administrators.

    We have a copy of the new version installed and have been testing it out. There are some issues that I've identified that have to be fixed before it can be rolled out to any of our sites. For example, quoting doesn't work right.

    In the mean time, I'll work on the code for the vb coloring again tomorrow.

    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
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Thank you .

  12. #12
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    It'd also be cool if you guys fixed the PHP tag bug.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  13. #13
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614
    It'd also be cool if you guys fixed the PHP tag bug.
    Can you give me more details on what this bug is?

    Thanks,
    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)

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

  14. #14
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    I posted it a long time ago, but basically:

    PHP Code:
    //this is my code here 
    VB Code:
    1. 'this is my code here

    Notice how the php tag creates extra newlines above and below the code. It's really annoying and kinda looks tacky.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  15. #15
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Hey Brad,

    Is the PHP tag a hack or is it just a custom vB Code tag? If it's a custom tag, can you tell me what the vB Code Replacement is set at?

    I was looking at the HTML generated for the page, and figured out a way to remove the extra lines.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  16. #16
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Nevermind. I did some researching and found out that the PHP tag is hard coded into the scripts, so I'm guessing you wouldn't want to bother with it if you're just going to be updating soon anyways.

    Maybe the new version will fix it?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  17. #17
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614
    Originally posted by The Hobo


    Maybe the new version will fix it?
    In version 3, there is no spacing added before or after php code when using the php tags.

    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)

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

  18. #18
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    :mouth waters:
    My evil laugh has a squeak in it.

    kristopherwilson.com

  19. #19
    Addicted Member
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    175
    Originally posted by The Hobo
    I posted it a long time ago, but basically:

    PHP Code:
    //this is my code here 
    VB Code:
    1. 'this is my code here

    Notice how the php tag creates extra newlines above and below the code. It's really annoying and kinda looks tacky.
    There's a solution here:

    http://www.vbulletin.com/forum/showp...04&postcount=9
    Gary W Web Developer & Designer
    Visual Basic 6

  20. #20

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Any progress regarding new .NET Keywords ??

  21. #21
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    They were being messed with in the testing forum, I saw. Don't know whether normal users can see that...
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  22. #22

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I've seen it once .

  23. #23
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614
    The testing forum is public.

    I made changes to the php file. These changes should have gone immediately live, but didn't. I've asked the server admins to look into why the php changes didn't show on the live server. I'm waiting on a reply.

    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)

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

  24. #24

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Great
    Thanks . We'll be waiting too .

  25. #25
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614
    I didn't take the time to look up all the new VB keywords. I added those in the list provided earlier in this thread. If you look in the testing forum, you'll see the list of terms I added as well as the complete list of terms in the script for VB (they are in one of my test messages).

    The change for the PHP spacing didn't work. I've incorporated the suggested code change.

    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)

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

  26. #26
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by brad jones
    The change for the PHP spacing didn't work. I've incorporated the suggested code change.
    It looks like it did work, somewhat. There is no longer an extra space under the code. Did you miss something, by chance?

    Thanks for looking into it, Brad.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  27. #27

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Thanks Brad for being so helpful .

  28. #28
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    If Brad can get the other half of the PHP tag fixed, I think I might have to start a campaign to get him a raise.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  29. #29

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    You said it's been solved .

  30. #30
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by Pirate
    You said it's been solved .
    Where?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  31. #31

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by The Hobo
    It looks like it did work, somewhat. There is no longer an extra space under the code. Did you miss something, by chance?

    Thanks for looking into it, Brad.

  32. #32
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Where in that quote do you gather that it was solved? I was telling him that it was fixed on the bottom of the text, but not the top.

    So it is somewhat solved, but indeed, not solved.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  33. #33

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Hmm , you should've started your own thread with PHP title or so . This thread should be strictly for VS.NET highlighting problem .

  34. #34
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by Pirate
    Hmm , you should've started your own thread with PHP title or so . This thread should be strictly for VS.NET highlighting problem .
    I did. A long time ago.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  35. #35
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614
    okay, the PHP is 1/2 resolved. It has been changed to the suggested fix that was posted earlier in this thread. It should actually be working on both the top and bottom, but obviously is not. I've dug a little into the code, but will have to dig a lot deeper to figure out what is still wrong.

    The VB highlighting is now under control. As I mentioned, I didn't validate keywords. I can, however, get to the code to make changes if additional words come up. I'm guessing words like partial and generic may be added soon....

    Regardless, I'm closing this thread as resolved. Any new changes to a new thread.

    (I'll post a reminder thread on the PHP).

    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