Results 1 to 20 of 20

Thread: [VBCODE] tags

  1. #1

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    [Highlight=VB] tags

    Can't the header of the [Highlight=VB] tag be changed to [CODE].

    This forum have grown far beyond VB only, and it look kinda silly if one put some C# code, for example, in a block that are Marked "VB Code"

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: [Highlight=VB] tags

    Are you using IE or Firefox? There is a tool for each that lets you right click on text and format it in many different ways. I'm sure somebody else wil will give you a link, but I think MartinLiss has one in his sig for IE.

    That's how we do THIS!!!!!!!!!!!!!!!!!!

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [Highlight=VB] tags

    The vbcode tags are a special hack added in by some of the developers at JupitorMedia.

    Since they had such a hard time with the upgrade and the vbcode tags I doubt it that they will risk making any
    more modifications to it , but it doesnt hurt to ask.

    Code:
    -----------------------------------------
    Private Sub Form_Load()
    'Blah, blah, blah...
    End Sub
    -----------------------------------------
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: [Highlight=VB] tags

    hmmm....I think I did not make myself clear enough

    I mean this look a bit funny

    [
    VB Code:
    1. /* in here I got c# code...
    2.    * not vb code as the tag suggest
    3.   */

  5. #5

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: [Highlight=VB] tags

    Oh, thanx Rob, you answered while I was replying myself
    Nevermind...of course this is not a problem...just thought about it

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [Highlight=VB] tags

    Quote Originally Posted by dglienna
    Are you using IE or Firefox? There is a tool for each that lets you right click on text and format it in many different ways. I'm sure somebody else wil will give you a link, but I think MartinLiss has one in his sig for IE.

    That's how we do THIS!!!!!!!!!!!!!!!!!!
    dglienna, did you read the post completely? Hes not asking how to color the code but rather the "Visual Basic Code:" description before the actual code.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [Highlight=VB] tags

    Quote Originally Posted by StrangerInBeijing
    Oh, thanx Rob, you answered while I was replying myself
    Nevermind...of course this is not a problem...just thought about it
    We shall see what Martin thinks about it since it is a valid point. He usually is quite good at replying to
    posts in the Feedbak Forum in a timely mannor.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  8. #8

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: [Highlight=VB] tags

    Hey Rob,

    Just thought I would ask while we are here, as I always wondered...

    PPL like you, Martin, Rob, NoteMe, Mendhak (cute couple the latter), etc, etc seems to be on this forums 24/7. You guys do this for a living? Got other work, but time for this? Lots of Money, and no Life? (no offence hey)..... Just curious...You seems to be everywhere, all the time...are you even one person??

    Cheers

  9. #9
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [Highlight=VB] tags

    Quote Originally Posted by StrangerInBeijing
    Hey Rob,

    Just thought I would ask while we are here, as I always wondered...

    PPL like you, Martin, Rob, NoteMe, Mendhak (cute couple the latter), etc, etc seems to be on this forums 24/7. You guys do this for a living? Got other work, but time for this? Lots of Money, and no Life? (no offence hey)..... Just curious...You seems to be everywhere, all the time...are you even one person??

    Cheers
    No we are all separate people.
    Most of us have a job or go to school but I leave the site up all day so when I need to search or post a thread I dont have to wait.
    I believe Martin may be retired. I am back on the site at home off and on as I have allot of work to do remodeling my house.

    So I guess not too much of a life, but I did get out last Sunday to go to a Ford Mustang car show (got sun taned while walking around).

    Hopefully it wont take too much of a change to make it Code: and not VB Code:.
    But then the issue of the actual code tag text. [Code][/Code] would conflict with the current code tag so
    it may have to remain the same [VBCode][/VBCode] tags just with a different header.
    Last edited by RobDog888; Apr 19th, 2005 at 09:16 PM.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  10. #10

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: [Highlight=VB] tags

    lol..thanx 4 sharing

    hope to know enough by winter to live off the site as well. No way i'm going anywhere during the winter here...they got this....what's it called again.....snow??? Huh uh.....I'm from Africa, and aint putting a foot in that stuff.

    anycase, i will shurrup now...see what Granpa Martin (Kidding pop) got to say.

    Cheers

  11. #11
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: [Highlight=VB] tags

    I was referring to the options in the add-on's

    Here is the one for C++ code. There is also PHP and VB
    It adds the color codes automatically

    Code:
    /* in here I got c# code...   * not vb code as the tag suggest  */

  12. #12
    Addicted Member
    Join Date
    Sep 2004
    Posts
    133

    Re: [Highlight=VB] tags

    What about the CODE tags?

    Code:
    /* in here I got c# code...   * not vb code as the tag suggest  */
    Coloring the Language Syntax is not that important

  13. #13
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: [Highlight=VB] tags

    Quote Originally Posted by StrangerInBeijing
    Hey Rob,

    Just thought I would ask while we are here, as I always wondered...

    PPL like you, Martin, Rob, NoteMe, Mendhak (cute couple the latter), etc, etc seems to be on this forums 24/7. You guys do this for a living? Got other work, but time for this? Lots of Money, and no Life? (no offence hey)..... Just curious...You seems to be everywhere, all the time...are you even one person??

    Cheers
    I'm retired

  14. #14
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [Highlight=VB] tags

    Quote Originally Posted by dglienna
    I was referring to the options in the add-on's

    Here is the one for C++ code. There is also PHP and VB
    It adds the color codes automatically

    Code:
    /* in here I got c# code...   * not vb code as the tag suggest  */
    Well then why didnt you show an example of that instead of rainbow coloring?
    I dont see any syntax coloring for your C# example code you posted? Only grey comments.
    How about a decent example?

    Martin, how about changing the vb code tag header description?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  15. #15

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: [Highlight=VB] tags

    Cool....that's what I wanna do when I retire....write code somewhere on a game farm back home!

    Don't know exaclty what you guys meant witht that tags, but will see as soon I can stop this c# running out my ears (been throug 8 chapters in 24 hours!!!!)

  16. #16
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: [Highlight=VB] tags

    Found some C++ code. Let's see if it works, even...

    Code:
    type va_arg(
       va_list arg_ptr,
       type 
    );
    void va_end(
       va_list arg_ptr 
    );
    void va_start(
       va_list arg_ptr 
    );   (UNIX version
    )
    void va_start(
       va_list arg_ptr,
       prev_param 
    );   (ANSI version
    )
    I found the link that I was looking for:
    Here is the code formatting tool that some of us have:

    http://www.vbforums.com/showthread.php?t=225306

  17. #17

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: [Highlight=VB] tags

    uuuuh...seems mine does not preserve the indenting??

    Code:
    staticvoid Main(string[] args)
    {
     
    try
     
    {
     
    Entrance();
     
    }
     
    catch (Exception caught)
     
    {
     
    Console.WriteLine(caught.Message);
     
    }
     
    }
    Last edited by StrangerInBeijing; Apr 20th, 2005 at 12:20 AM.

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

    Re: [Highlight=VB] tags

    I'm not totally sure I follow what is being asked.....

    There are currently three different coding tags on this site. VBCode colors for VB syntax. PHP colors for PHP code, and Code is a generic tag for everything else.

    If you are doing C++, C# or some other language, then the best solution is to use a third party coloring tool that marks your code with the vBulletin color tags. You then post this into the Code tag. References have been made in this thread to some tools. There are also several very good ones on CodeGuru that let you simply copy something to and from the clipboard and the color tags are added. We'll see if we can find links to some of these to post here.

    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)

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

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

    Re: [Highlight=VB] tags

    Yves, one of the moderators, posted his code for coloring code. He even wrote an article about it. You can find it here:

    Coloring Your Code in vBulletin Posts

    As mentioned, this is just one of many tools available.

    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)

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

  20. #20
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: [Highlight=VB] tags

    Quote Originally Posted by StrangerInBeijing
    uuuuh...seems mine does not preserve the indenting??

    Code:
    staticvoid Main(string[] args)
    {
     
    try
     
    {
     
    Entrance();
     
    }
     
    catch (Exception caught)
     
    {
     
    Console.WriteLine(caught.Message);
     
    }
     
    }

    I posted a link in #17

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