Fixed Template editor syntax colouring issue

Affected version
2.1.4

Neilski

Member
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?
 

XF Bug Bot

XenForo bug fixer bot
Staff member
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.
 
Top