Results 1 to 6 of 6

Thread: How to use highlight code VB6 and diff

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2016
    Posts
    230

    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:
    1. Private Sub Form_Load()
    2.     Dim foo As bar
    3.     Dim arr() As Long
    4.     ReDim arr(0 To 2)
    5.     ' Comment
    6. End Sub

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

    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.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2016
    Posts
    230

    Re: How to use highlight code VB6 and diff

    Thank you jmcilhinney, and yes it was a misplaced question.

  4. #4
    Fanatic Member Delaney's Avatar
    Join Date
    Nov 2019
    Location
    Paris, France
    Posts
    845

    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)

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: How to use highlight code VB6 and diff

    Quote Originally Posted by Delaney View Post
    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.

  6. #6
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    38,989

    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
  •  



Click Here to Expand Forum to Full Width