-
Nov 30th, 2021, 11:56 AM
#1
Thread Starter
New Member
RichTextBox Pretty Printer
Hi this is very helpful, but how can it be modified to colorize tags also when they have parameters?
I mean... usually one will type, i.e.:
<img src=.....>
while using this code if i put <img> in the redlist to colorize it red, it will only work if i write the <img> tag, and then go back to add the src= part.... the same goes for all parametric tags, like table, div, input, form, etc...
on the other side, if i put 'open tags' in the list, i.e.: BlueWords.Add("<img") it will not colorize the final >.
I have tried to customize it adding a 3rd word list, (olive list):
Dim OliveWords As New List(Of String)
OliveWords.Add("<")
OliveWords.Add(">")
but it looks like the program cannot understand it because they are not colorized in any color, they appear black... probably because < and > are already present in the other two lists...
-
Nov 30th, 2021, 12:21 PM
#2
Re: RichTextBox Pretty Printer
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|