12-27-2011, 07:39 AM
Covert2String Wrote:Hello, here I am asking for help again <!-- s --><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt="" title="Very Happy" /><!-- s -->. So, what I want is to know if there's a way to make a programm like a PHP editor, I want my application to "read" the code and change some keywords like "for", "while" to a specified color.
PHP Editor would be really difficult, but you can always try a HTML Editor by using a TextBox, a WebBrowser, another textbox and a button!
Basically TextBox1 will be for the HTML code. So we don't really need any code on that one.
Our WebBrowser1 doesn't need any code, neither does TextBox2.
For Button1 just add (I keep thinking I'm working in Flash so I put on(release){ <!-- s --><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt="" title="Very Happy" /><!-- s -->):
Code:
WebBrowser1.Navigate(TextBox2.Text)
TextBox1.Text = WebBrowser1.DocumentText