its all a part of cms like vbulletin / phpbb
it take quite some work to implement your own
anilashanbhag
Junior Poster in Training
58 posts since Oct 2010
Reputation Points: 10
Solved Threads: 10
I've been using TinyMCE for a while. You need to have the library on your server side and include the library in the page. Don't forget the configuration in your javascript. Then you need to follow the format of a textarea element and it should automatically shows the editor for you.
Taywin
Posting Virtuoso
1,727 posts since Apr 2010
Reputation Points: 229
Solved Threads: 239
Sorry, I don't use SyntaxHighlighter. My codes are usually copy righted to the company I am working for. However, you may look at the SyntaxHighlighter demo and view its page source. From what I understand, you need a 'pre' tag and also load the library to the page. Then, you add the html-script property to the 'pre' tag. That's my guess.
Taywin
Posting Virtuoso
1,727 posts since Apr 2010
Reputation Points: 229
Solved Threads: 239
Hmm... If you want WYSIWYG 'editor' which also displays a code format at the same time, I doubt there is one for you. The reason is the HTML element property limitation. Though, you could create one but would not be as much pretty as you want. If you see this forum, it only 'display' the code in whatever its format, but it will display as a textarea when you do the editing. In other words, you can accept the input using a WYSIWYG editor on a textarea, and then display it out on pre tag afterward. No editing & displaying at the same time (similar to this website).
@Fortinbra
Yes, The editor you are talking about is called Fckeditor which is a legitimate name. It's been around for a long time too. Not sure whether it is before TinyMCE.
Taywin
Posting Virtuoso
1,727 posts since Apr 2010
Reputation Points: 229
Solved Threads: 239