Results 1 to 9 of 9

Thread: [RESOLVED] Use highlight vb.NET to show code in Visual Basic .NET forum.

  1. #1

    Thread Starter
    PowerPoster Poppa Mintin's Avatar
    Join Date
    Mar 2009
    Location
    Bottesford, North Lincolnshire, England.
    Posts
    2,500

    Resolved [RESOLVED] Use highlight vb.NET to show code in Visual Basic .NET forum.

    Hi,
    I've just installed VS2019 in a new Win.11 laptop, in the Visual Basic .NET forum I can no longer find how to select Highlight rather than just CODE as I could in my Win.10 laptop.

    Poppa
    Along with the sunshine there has to be a little rain sometime.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Use highlight vb.NET to show code in Visual Basic .NET forum.

    You can select it the same way as always but it doesn't do anything useful anymore. I believe that it used a custom script that broke and had to be fixed every time the forum software was upgraded. Some time back, they just stopped fixing it. Not sure whether it was because one particular upgrade made it more difficult to fix or they just decided that it wasn't worth the hassle anymore. All posts that use that tag no longer display syntax colouring like they used to.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    PowerPoster Poppa Mintin's Avatar
    Join Date
    Mar 2009
    Location
    Bottesford, North Lincolnshire, England.
    Posts
    2,500

    Re: Use highlight vb.NET to show code in Visual Basic .NET forum.

    Oh...
    'The same way as always' doesn't exist on my version of VS2019 which was installed this year from the Microsoft website.
    So I guess we can't display line numbered code any more ?
    Along with the sunshine there has to be a little rain sometime.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Use highlight vb.NET to show code in Visual Basic .NET forum.

    Quote Originally Posted by Poppa Mintin View Post
    'The same way as always' doesn't exist on my version of VS2019 which was installed this year from the Microsoft website.
    It's got nothing to do with VS or VB. It's a feature of this forum... or it was, at least. The same way as always is clicking the VB (looks like VE) button on the editor toolbar, which tells you that it will add a HIGHLIGHT tag if you hover over it. As I said, selecting VB.NET as the option used to invoke a custom script to add line numbers and syntax highlighting but that script no longer works. Are you talking about something different?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    Administrator Steve R Jones's Avatar
    Join Date
    Apr 2012
    Location
    Clearwater, FL.
    Posts
    2,352

    Re: Use highlight vb.NET to show code in Visual Basic .NET forum.

    test
    Wi-fi went down for five minutes, so I had to talk to my family....They seem like nice people.

  6. #6
    Administrator Steve R Jones's Avatar
    Join Date
    Apr 2012
    Location
    Clearwater, FL.
    Posts
    2,352

    Re: Use highlight vb.NET to show code in Visual Basic .NET forum.

    test number 2

    Is this the "highlight" you're talking about?

  7. #7

    Thread Starter
    PowerPoster Poppa Mintin's Avatar
    Join Date
    Mar 2009
    Location
    Bottesford, North Lincolnshire, England.
    Posts
    2,500

    Re: Use highlight vb.NET to show code in Visual Basic .NET forum.

    Oh !
    I'd swear that wasn't there when I started this thread, I passed the cursor over every button and never found highlight, it's there now though. My memory's not too good these days, but I'm sure that previously there were more buttons on that top row than there are now.

    Thanks John


    Poppa


    PS
    Ah... I just clicked 'Go advanced' to check my typing and all the stuff which used to be there has appeared. In three rows now.

    Pop
    Along with the sunshine there has to be a little rain sometime.

  8. #8

    Thread Starter
    PowerPoster Poppa Mintin's Avatar
    Join Date
    Mar 2009
    Location
    Bottesford, North Lincolnshire, England.
    Posts
    2,500

    Re: Use highlight vb.NET to show code in Visual Basic .NET forum.

    Quote Originally Posted by Steve R Jones View Post
    test number 2

    Is this the "highlight" you're talking about?
    No Steve, it was a matter of not being able to display coding with line numbers.

    Thanks anyway.
    Along with the sunshine there has to be a little rain sometime.

  9. #9
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [RESOLVED] Use highlight vb.NET to show code in Visual Basic .NET forum.

    I haven't used them but there are VS extensions that will let you copy code with line numbers and copy as HTML with syntax highlighting. Not sure if there's a single extension that will let you do both at the same time.

    https://marketplace.visualstudio.com...rtBy=Relevance

    Actually, the line number extension I saw may have been for VS Code.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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