VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Syntax Dynamic Colorizer

Anthony Awx  (6 Submissions)   Miscellaneous   Visual Basic 3.0   Advanced   Wed 3rd February 2021

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).

Rate Syntax Dynamic Colorizer (9(9 Vote))

Download Syntax Dynamic Colorizer

Syntax Dynamic Colorizer Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters