VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Change Colour of Specified Text (Like HTML tags) in a RTF Box

Eriond  (1 Submission)   String Manipulation   Visual Basic 3.0   Advanced   Wed 3rd February 2021

This sifts through all the text in a RTF file and changes the colour of html tags. It can be used ewither automatically or on the fly (as you type into the RTF box). It currently Chnages the colour of html tags (defined as anything between "<" and ">") and html comments (""). Enjoy! Please mail me with suggestions

Assumes
You need to have a RTF box with the default name (richtextbox1) on your form.

Side Effects
No side effects have been noticed.

API Declarations
You need to declare these variable within your forms declarations:
For the On the Fly Declare:
Dim previous as integer
For the automated declare:
posStart As Integer
Dim previousChar As String

Rate Change Colour of Specified Text (Like HTML tags) in a RTF Box (5(5 Vote))
Change Colour of Specified Text (Like HTML tags) in a RTF Box.bas

Change Colour of Specified Text (Like HTML tags) in a RTF Box Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters