thanks for your feedback!
As I've already wrote in the starting post of this thread: I really don't know, if syntax highlighting (and some additional typical code editing features) are really useful for CMSimple's backend. But as I found out, it could be done as a simple plugin. So every single user could decide, if he wants this addition or if he rather lives without it. The current time for developing the current solution was about 2-3 hours!! So I don't think, it was really a waste of time.
I personally prefer to make adjustments to the template or the stylesheets in my accustomed editor locally on my xampp or via ftp on the webserver. But I can imagine situations, when I want to make slight adjustments to those files, not working on my machine, but perhaps from a customers PC ("oh, BTW, is it possible to have a border around that?"), where neither FTP client nor FTP capable editor are available. So an already installed CodeEditor_XH might help a little bit.
I'm aware of CodeMirrors constraints (particularly no line wrap available). And I don't want to spend too much time in developing CodeEditor further. Indeed there isn't too much that can be done to improve it.
Tata wrote:Changes made online may be VERY dangerous and may make this forum full of requests "What did I wrong?"
I guess you're right! But the current situation allows user to make those changes online right now. I doubt, that CodeEditor will make that worse. The typical end-user won't use it.
Tata wrote:I maybe missed some point and the idea having syntax-highlighted textarea is something CMSimple-revolutionary.
It is definitly not revolutionary! Just a tiny addition to CMSimple's toolbox.
bca wrote:in fact sometimes I CHMOD the stylesheet and template unwriteable. (Maybe we need a Developer mode?)
This might be a very good idea. It might be discussed in another seperate thread in Open Development. IMO there are some more things, which would better be hidden from end-users.
bca wrote:So I will use CodeeditorXH - well done Christoph.
bca wrote:It could do with line wrap though
CodeMirror user manual wrote:Note: CodeMirror 2 does not support line-wrapping. I would have very much liked to support it, but it combines extremely poorly with the way the editor is implemented.
bca wrote:Anything else up your sleeve?
Currently I'm wearing a T-shirt, so there can't be much under it's sleeves
Gert wrote:So you mostly will have a horizontal scrollbar, some templates will be destroyed by using CodeMirror.
I won't do too much about that. But if some (power) users are happy with it ...