Attached file (from [url removed, login to view]) shows an algorithm to colorize vb6 code in a RTF control. The algorithm should be changed so that it no longer uses a RTF control. Instead, it takes a inputstring and returns a HTML string in which parts of the inputstring have been color-tagged (the keywords and the comments). The resulting coloring should be identical as in the RTF example.
If the string is saved it should be valid HTML file. Saving the string as a file is not part of the project.