VB Syntax Coloring

Saturday Feb 7th 2004 by Sam Huggil
Share:

Learn about another method to color code VB Syntax in an RTF control. (Added: 9-Jun-1999)

There are now quite a few code repository programs on the market, and they all implement syntax colouring. This gives the program the look and feel of Visual Basic, but with their own customised interface. This control works by having a list of words that need to be coloured, and then checks the text for an occurrences of this text. It also handles comments and underscores.

Screen Shot

Requirements

This control requires the Microsoft RichTextBox control 6.0 although you could change the design to support an earlier version.

Implementation

The download comes with a full demonstration project which shows you how to change the colours (using the ChooseColour dialog).

Download Zipped Project File 56k

Share:
Home
Mobile Site | Full Site
Copyright 2017 © QuinStreet Inc. All Rights Reserved