Solved

HTML help

Posted on 2003-11-11
9
300 Views
Last Modified: 2013-12-16
I'm trying to build an HTML editor which will save files as html or text and highlight certain HTML tags with different colours automaticly. Does anyone know any tutorials to help or knows how to do it please tell me.

Adam
0
Comment
Question by:n5233
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 9725508
Your best bet would be to load your html file into a richtextbox and then do a series of InStr() calls looking for your tags and change their color as you find them.

A vague answer? I know...  Give us a little more detailed information on how you want the app to work and we can help you out.

Idle_Mind
0
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 63 total points
ID: 9725558
0
 
LVL 9

Assisted Solution

by:Dang123
Dang123 earned 62 total points
ID: 9725581
0
Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

 

Author Comment

by:n5233
ID: 9729539
I would like to try and build an HTML editor which (i.e. better version of notepad) which colour codes text so as it is easier to find certain tags like the head, body, bold, underline tags etc. I was also going to try and make it be able to save the html in *.html and *.txt with one click of a buton. If possible I was also going to put a preview screen beside the html editor window so as you type it constantly refreshes the html preview window, showing you what it would look like in a web page. I could also have an open button as well as a save button to open html files and edit them and buttons to quickley insert different tags like body and head.

Hope this helps

Adam
0
 
LVL 2

Expert Comment

by:MaxPol
ID: 9730402
Hi,

what you need is at the end to write a parser.

It should parse any single word or special tag in a text and hadle as required.

It is not too difficult for few and simple tags.

Probably you will find some samples looking on google for parser sample code.

Hope it helps.

Max
0
 
LVL 9

Expert Comment

by:Dang123
ID: 9732555
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 10537232
Moderator, my recommended disposition is:

    Split points between: Richie_Simonetti and Dang123

Dan Rollins -- EE database cleanup volunteer
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question