What do you mean highlight words in the VB IDE? Changing the colour, font etc of your code?
If so, Tools->Options->Editor Format.
Artificial Intelligence At War! - The best game of its genre Program your own robot and watch it fight in 3d! Droidarena 3
If I have been useful, please Rate My Post
Support FireFox -
Microsoft Visual Studio .NET Professional 2003
Microsoft Visual Studio 6, Enterprise Edition
Microsoft Windows XP Professional, Service Pack 2
Relatively simple but you must manually input the words you want highlighted in the Expression argument of the Split() function iv used delimited by semi-colons. In my example, "Visual Basic", "Compile" and "Debug" will be highlighted.
If LCase(Mid(rtfBox.Text, srchT, Len(stringIDE(srchIDE)))) = LCase(stringIDE(srchIDE)) Then
With rtfBox
.SelStart = srchT - 1
.SelLength = Len(stringIDE(srchIDE))
.SelColor = &HFF
End With: Exit For
End If
Next srchIDE
Next srchT
End Sub
Last edited by Luke K; Jan 5th, 2005 at 11:20 AM.
Reason: Debug
Artificial Intelligence At War! - The best game of its genre Program your own robot and watch it fight in 3d! Droidarena 3
If I have been useful, please Rate My Post
Support FireFox -
Microsoft Visual Studio .NET Professional 2003
Microsoft Visual Studio 6, Enterprise Edition
Microsoft Windows XP Professional, Service Pack 2
Relatively simple but you must manually input the words you want highlighted in the Expression argument of the Split() function iv used delimited by semi-colons. In my example, "Visual Basic", "Compile" and "Debug" will be highlighted.
It is the fastest way I can think of. If the script is big, give the user something to look at, a progressbar perhaps that shows the progress of the highlighting.
Artificial Intelligence At War! - The best game of its genre Program your own robot and watch it fight in 3d! Droidarena 3
If I have been useful, please Rate My Post
Support FireFox -
Microsoft Visual Studio .NET Professional 2003
Microsoft Visual Studio 6, Enterprise Edition
Microsoft Windows XP Professional, Service Pack 2
Sure, you can do that if you want. I'm not stopping you
You would still have to keep a count of where that word starts in the whole of the text plus the position of the text that starts in the line.
Last edited by Luke K; Jan 5th, 2005 at 11:36 AM.
Artificial Intelligence At War! - The best game of its genre Program your own robot and watch it fight in 3d! Droidarena 3
If I have been useful, please Rate My Post
Support FireFox -
Microsoft Visual Studio .NET Professional 2003
Microsoft Visual Studio 6, Enterprise Edition
Microsoft Windows XP Professional, Service Pack 2