PDA

View Full Version : Could you help me with HTML editor?



Hofiiik
08-13-2009, 07:36 AM
Hi all,
I'm trying to make a HTML editor in AMS. It would contain several buttons, which would make writing HTML code faster, than in Notepad. I'm using Input as object for typing, but I want to use a RichText object and differentiate HTML code from text (for example, text will be black and <p> will be purple etc.). However, I don't know, how to do that :huh Do you have any ideas how to make this possible? Thank you

Here's what I've already done (it's in Czech, but I'll translate it into English):
http://img229.imageshack.us/img229/7461/wildmonkeyssprvcewebu.th.png (http://img229.imageshack.us/i/wildmonkeyssprvcewebu.png/)

Centauri Soldier
08-13-2009, 01:20 PM
You're going to need to parse the text in the Richtext object, color it and then put it back into the Richtext object. I am working on this problem right now with a lua code viewer. The problem is that there is no function to get the Richtext line number. If we could figure this out then this parsing task would be easy.