Hi. I want to make text editor like here, with specific codes like [coode] ...etc
I want the basic Idea to do that?
thank's
Printable View
Hi. I want to make text editor like here, with specific codes like [coode] ...etc
I want the basic Idea to do that?
thank's
Here is a simple example showing how to do this using regex.
http://www.vbforums.com/showthread.php?t=386738
what you posted is for making a forum tag system, and will not in any way accomplish syntax highlighting for any langauges.
to make syntax highlighting for PHP, you can use the built in highlight_file() or highlight_string() functions. for other languages (xml, html), you can find examples in the comments for highlight_string(). for languages like basic, c-sharp, etc., I'm sure you could base your own functions on them -- or you might be able to find a few via googling.
The op was not clear then. What i got out of his post was that he wanted to include ways to utilize the tagging system.
OP, if you are wanting to highlight bits of code, i suggest using GeSHi