[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
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.
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 ?
Re: Use highlight vb.NET to show code in Visual Basic .NET forum.
Quote:
Originally Posted by
Poppa Mintin
'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?
Re: Use highlight vb.NET to show code in Visual Basic .NET forum.
Re: Use highlight vb.NET to show code in Visual Basic .NET forum.
test number 2
Is this the "highlight" you're talking about?
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
Re: Use highlight vb.NET to show code in Visual Basic .NET forum.
Quote:
Originally Posted by
Steve R Jones
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.
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.