We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.开发者_如何学编程
Closed 4 years ago.
Improve this questionI am using Wordpress and I want site editors to be able to write html by hand (no wysiwyg). However, everyone knows that editing html in a textarea with no colorization or other code editor features is difficult. Does anyone know of a solution -- maybe a textarea replacement, browser extension, or the like?
There are plenty of wysiwyg editors, but I'm specifically looking for an in-browser code editor that handles HTML. It would be a bonus if it handled javascript and CSS as well.
Have you considered using Markdown (as StackOverflow does) ?
In my opinion, it is very easy to write and format text using Markdown. It is easy to get started with WMD, which is a java-script only Markdown editor.
Mozilla bespin is a javascript text editor that can be embedded.
Duplicate of https://stackoverflow.com/questions/1505761/textarea-with-syntax-code-highlighting and Textarea that can do syntax highlighting on the fly?
From those threads, a list of in-browser html editors: http://en.wikipedia.org/wiki/Comparison_of_JavaScript-based_source_code_editors
EditArea, CodeMirror, CodePress, and Bespin all seem active and capable. Using WMD for markdown is another option.
I'm quite fond of XStandard. It produces proper valid HTML (Only the XHTML varieties), has a realistic WYSIWYG editor with the option to also edit the source directly, and has a free version (which has been enough for uses I've put it to).
精彩评论