Search Tools Links Login

Syntax Dynamic Colorizer

This projects shows how to convert an RTF box into a dynamic Syntax Colorizer (like the VB IDE colorizes what you type). It uses a text file to build its list of keywords (are you writing your own scripting language?), which you can easily modify by adding your own list of words/commands. Included is a small subset of the VB language syntax to show an example. Routines are very fast, and account for quotes, and comments. Routine also sets keywords to proper case ("print" to "Print" or "backcolor" to "BackColor". Hope this is helpful to some of you out there - I have commented it heavily to help you if you need to make modifications, or you can simply drop the "Colorizer" module into your own projects and use as is (simply pass your forms RTF box and the colors of your IDE you want).

Original Author: Anthony Dunleavy

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 87 times


Visual Basic 6


Posted: 9/3/2020 3:45:00 PM
Size: 7,646 bytes

Loading Comments ...


No comments have been added for this post.

You must be logged in to make a comment.