by Martijn B (7 Submissions)
Category: String Manipulation
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (3 Votes)
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
Code Returns
A single string.
API DeclarationsFew API calls for string allocation are used.
All calls may be replaced by a (slower) single VB statement.
Upload
Download this snippet Add to My Saved Code
No comments have been posted about Fast Colorize 2 for HTML / XML / XHTML / SGML / ... source viewing. Why not be the first to post a comment about Fast Colorize 2 for HTML / XML / XHTML / SGML / ... source viewing.