how can i create a text editor for my blog
How to create a text editor for my blog similar to the one used in stackoverflow 'Ask Question'.
Which programming language to use ? How would it affect the load time of my site ? And how d开发者_运维问答o i handle the text received ? Thanks in advance.
It seems like you'd want to use an existing Javascript widget like TinyMCE: http://tinymce.moxiecode.com/
I use ckeditor for general HTML but it isn't designed for entering code. The stackoverflow one is open source though so look in the site source code for the Javascript.
You can use a Markdown (http://daringfireball.net/projects/markdown/).
"Markdown is a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML)."
You'll find a parser for almost any programming language.
精彩评论