VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

VB to HTML syntax hilighter

Gerco Dries  (4 Submissions)   Internet/HTML   Visual Basic 5.0   Intermediate   Wed 3rd February 2021

Inspired by the sudden "explosion" of syntax hilighters around here I decided to roll my own, just to see how it would turn out. This is an extensible Object Oriented approach to syntax hilighting with very easy-to-read sourcecode. By default the program uses the CSS emitter, which generates colors using the included CSS file, you can switch it to use tags of you can write your own emitter with little to no effort. The parser and emitter parts of the code are completely distinct.
Right now it parses keywords, numbers, comments, strings and plain text, have fun with it, it's certainly somewhat more useful than some of the other hilighter examples I've encountered here.
Updated new version, new features:
- Supports Progress 4GL as well as Visual Basic
- Command line parameters for scriptability
- Will expand and uppercase abbreviated keywords in P4GL
- Added Plaintext emitter
- Some general code cleanup and improvement

Rate VB to HTML syntax hilighter (5(5 Vote))

Download VB to HTML syntax hilighter

VB to HTML syntax hilighter Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters