VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Fast HTML highlite7

RegX  (15 Submissions)   Internet/HTML   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

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.

API Declarations
' Needs reference to Microsoft VBscript Regular Expressions.
I reccomend 5.5
' Get it at http://msdn.microsoft.com/downloads/default.asp?URL=/downloads/sample.asp?url=/msdn-files/027/001/733/msdncompositedoc.xml

Rate Fast HTML highlite7 (7(7 Vote))

Download Fast HTML highlite7

Fast HTML highlite7 Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters