|
-
Feb 28th, 2009, 01:25 PM
#1
Thread Starter
Hyperactive Member
text editor with specific codes
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
-
Feb 28th, 2009, 02:02 PM
#2
Re: text editor with specific codes
Here is a simple example showing how to do this using regex.
http://www.vbforums.com/showthread.php?t=386738
My usual boring signature: Something
-
Feb 28th, 2009, 02:53 PM
#3
Re: text editor with specific codes
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.
-
Feb 28th, 2009, 03:03 PM
#4
Re: text editor with specific codes
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
My usual boring signature: Something
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|