Solved

HTML help

Posted on 2003-11-11
9
297 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…

805 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