VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Syntax Dynamic Colorizer

by Anthony Awx (6 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (9 Votes)

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

Download Syntax Dynamic Colorizer

Download Syntax Dynamic Colorizer (7 KB)

Syntax Dynamic Colorizer Comments

No comments have been posted about Syntax Dynamic Colorizer. Why not be the first to post a comment about Syntax Dynamic Colorizer.

Post your comment

Subject:
Message:
0/1000 characters