Search Tools Links Login

Fast HTML highlite7

HTML syntax highlite using regular expressions
This is meant as a regular expressions tutorial.
This new version contains an extra form with
Heavy commenting.
Will properly highlight syntax that stumps most syntax highlighters.
Also includes inline syntax highlighting
although this isn't nearly as good as the main
colorHTML funtion.
I have also added a button that runs the regular expression without highlighting the rtf text.
I added this because people have complained that this code isn't that fast.
The regular expresions are very fast.
Selecting the text and changing the color in the rtf box is what is slow. Of all the html syntax highlighters I have seen posted here this is the Fastest accept for one that writes raw rtf to a file. I have been playing with this to see if I can speed this one up the same way.
Comments and suggestions welcome.
and Please Vote.

Original Author: RegX

API Declarations

' Needs reference to Microsoft VBscript Regular Expressions.
I reccomend 5.5
' Get it at

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 77 times


Visual Basic 6


Posted: 9/3/2020 3:45:00 PM
Size: 26,968 bytes

Loading Comments ...


No comments have been added for this post.

You must be logged in to make a comment.