Made for your blog online content editor. And I'm used to using the usual editor like notepad ++. I am not a supporter of WYSIWYG editors, so I made my editor based on the usual textarea. What are the advantages of an editor?
Convenient toolbar in the style of Office 2007 (practice will show it)
Hotkeys support (almost all functions)
Tab puts exactly the tab, and does not jump to the next element (puts 4 spaces)
Shif + Tab removes tabs.
Smart Enter (inserts tabs as you drag in the previous line to align)
Shift + Enter inserts a line break in the style of the HTML tag
What am I getting at?
It seemed to me convenient for this, I decided to share this happiness with others, and made a service for writing articles for Habr. And since they write a lot of code on Habr, I decided to implement the code coloring used on my blog. And since the good Habr cuts all the tags that are not pleasing to him, and I use the GeSHi library. It was necessary to modify the file a bit, and now the habrosoobschestva the opportunity to write code in colors. And since this library is quite popular, it can highlight more than 80 languages. The coloring is implemented directly in the text of the article, you just need to specify the class for the code tag like this < code class = "html" > < / code > . If you don’t want to colorize, then you don’t need to specify anything then it will just format the indents without a tint.
Also the typographer was connected in more detail what he can, you can see here * 4 .
Conclusion
I tried to make everything as convenient as possible, but the opinion of one is still only his opinion. For this I am waiting for comments on the topic, which is not convenient, and what can be implemented to improve usability. It is desirable to leave all the offers and bug reports on the page dedicated to the editor.