-
Mar 9th, 2021, 06:15 AM
#1
Thread Starter
Addicted Member
How to use highlight code VB6 and diff
How to get VB6 code or a diff to have proper colors (highlight) in this forum?
[HIGHLIGHT=vb] doesn't seem to work.
vb Code:
Private Sub Form_Load()
Dim foo As bar
Dim arr() As Long
ReDim arr(0 To 2)
' Comment
End Sub
-
Mar 9th, 2021, 06:44 AM
#2
Re: How to use highlight code VB6 and diff
I'm going to provide a response here, because it looks like you actually want one, even though you posted in a forum that is not for that purpose. This forum is just for you to test things out, not to actually ask questions. If you want to ask a question about using the site then that should be in the Forum Feedback forum. If I have misinterpreted your intent then I apologise, but the fact that you posted as you would if you really were asking a question makes it seem to are.
As for the question, there is no way. There used to be a custom script or the like attached to the HIGHLIGHT tag but that was not reinstated on the last site upgrade. I think that it must have been incompatible with the most recent version of vBulletin.
-
Mar 9th, 2021, 07:06 AM
#3
Thread Starter
Addicted Member
Re: How to use highlight code VB6 and diff
Thank you jmcilhinney, and yes it was a misplaced question.
-
Mar 9th, 2021, 10:44 AM
#4
Re: How to use highlight code VB6 and diff
You can highlight code or anything with the [HL=color] tag :
[HL=skyblue]Highligthed code[/HL] -> Highligthed code but it won't work in the [highlight] tag
The best friend of any programmer is a search engine
"Don't wish it was easier, wish you were better. Don't wish for less problems, wish for more skills. Don't wish for less challenges, wish for more wisdom" (J. Rohn)
“They did not know it was impossible so they did it” (Mark Twain)
-
Mar 9th, 2021, 07:07 PM
#5
Re: How to use highlight code VB6 and diff
Originally Posted by Delaney
You can highlight code or anything with the [HL=color] tag :
[HL=skyblue]Highligthed code[/HL] -> Highligthed code but it won't work in the [highlight] tag
That allows you to explicitly highlight a line or the like, as it has always done, but I assumed that the OP was talking about automatic syntax highlighting. That's what the HIGHLIGHT tag used to provide but no longer does. I keep using it in preference to the CODE tag in cases that I don't need other formatting, just in case the syntax highlighting gets reinstated at some point in the future. Seems unlikely though.
-
Mar 14th, 2021, 08:31 PM
#6
Re: How to use highlight code VB6 and diff
I believe that the coloring associated with the Highlight tag was determined to be the cause of those horrible double posts that were happening for MONTHS after the software upgrade.
My usual boring signature: Nothing
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|