This function accepts a text-file as input and will output a colorized RTF String.
Nothing new about that, but this program will generate even large RTF files very fast.
You will see the difference if you try to colorize a 500kb XML file.
You may add the modules to your code to add HTML/XML/XHTML source viewing capabilities.
The code has gotten quite complicated, but the adjustable parts are documented.
(changing colors, or the tags that need coloring). You can for example color all
Inputs
This function accepts a text-file as input and will output a colorized RTF file as String.
Assumes
Asumes availability of the MS VBScript Regular Expressions 5.5
Returns
A single string.
API DeclarationsFew API calls for string allocation are used.
All calls may be replaced by a (slower) single VB statement.
No comments yet — be the first to post one!