by Gerco Dries (4 Submissions)
Category: Internet/HTML
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (5 Votes)
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