Implemented Template editor with syntax highlighting (e.g. Code Mirror, Ace Editor etc.)

Malcolm M

Active member
Hello, I have a suggestion that I think would benefit many site owners & developers when using the code. At the moment the code is a basic colour of black. I think it would be better if it could be colour coded so it's easier on the eyes and easier to find stuff etc.

What it is now:

What I'm aiming at:
 

Amaury

Well-known member
That would make it easy to find errors. I was having my co-admin, @mike406, helping me not too long ago with something I just could not figure out on the new style in regard to something appearing goofy. Turns out I forgot the closing </div>.
 

Malcolm M

Active member
That would make it easy to find errors. I was having my co-admin, @mike406, helping me not too long ago with something I just could not figure out on the new style in regard to something appearing goofy. Turns out I forgot the closing </div>.
Yeah exactly, it can be pain finding simple errors like that, I would also like line numbers too.
 

otto

Well-known member
And it gives als "XF Merge" that let you see 2 template editors side by side...

But both addons are unmaintained and will lost with XF 2.0 I think.
 

Martok

Well-known member
Fun fact that I posed this 10 minutes before @Mike's original post. Just a coincidence.
Yes I noticed the timing of yours and Mike's posts. I assumed you had seen it as you commented in that thread but thought I'd mention it here for the benefit of others. :)
 

Chris D

XenForo developer
Staff member
It's not really aware of XF template syntax so likely not, but either way, no, there is no keyboard shortcut.
 
Top