Fixed Template editor syntax colouring issue

Neilski

Active member
Affected version
2.1.4
Hi.

Not a major problem but I just spotted that when I converted a block of code from <script> tags to <xf:js>, the syntax colouring got broken, in two ways.

Firstly, most of the script lost its colouring entirely (intentional?), which is a shame.
Secondly, within the script I had a number comparison inside an expression and it used the < character; this restarted the colouring but in a broken way (and the closing tags weren't recognised so they went red).

Possibly pretty trivial to fix?
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.1.6).

Change log:
In the Admin CP template editor, ensure content of <xf:js> and <xf:css> tags are highlighted appropriately.
There may be a delay before changes are rolled out to the XenForo Community.
 
Unfortunately due to constraints within CodeMirror and the extent of the work required we have had to rollback this change because it was causing issues elsewhere.

We will consider changing this at some point in the future.
 
Back
Top Bottom