Solved

HTML help

Posted on 2003-11-11
9
298 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
9 Comments
 
LVL 85

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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…

828 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