VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Super Fast HTML-XML Highlighting

by RegX (15 Submissions)
Category: Internet/HTML
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (14 Votes)

Highlights HTML/XML syntax using Regular expressions and extracts Tag Names and properties. This version utilizes the cappendstring class to speed up concatenations.
Thanks to M.Bartlema for opening my eyes to this wonderful class and for the great rtf color module!
This version writes raw RTF so it is very FAST!!!
Actually, if you only need to highlight all the text the regx speed can be almost doubled so let me know. Here I wanted to use the same regx for inline highlighting so it needed to properly highlight partial tag selections. The only propblem I know of with this regx is that it wont properly highlight a comment if it immediatly follows another tag without spaces i.e.
.
I am working on it, but I don't want to slow down the regx. Anyway, this one is good enough for most production code. Enjoy, and please vote if you like this code.

API Declarations
Needs reference to MS regular expresions

Rate Super Fast HTML-XML Highlighting

Upload

Download this snippet    Add to My Saved Code

Super Fast HTML-XML Highlighting Comments

No comments have been posted about Super Fast HTML-XML Highlighting. Why not be the first to post a comment about Super Fast HTML-XML Highlighting.

Post your comment

Subject:
Message:
0/1000 characters