Skip Navigation

[Resolved] How to force code in Edit Content Template screen to be color-formatted?

This support ticket is created 5 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by jeffS-2 5 years, 11 months ago.

Assisted by: Nigel.

Author
Posts
#1163203

I am trying to:
Edit a content template. The html code and shortcodes are usually color-coded with syntax highlighting but suddenly that is not working. Curiously, the CSS pane and JS panes both have syntax highlighting appropriately.

I haven't seen this occur for a long time.

Please help! ?
Jeff

#1163602

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2018-12-11 at 10.22.12.png

Hi Jeff

Can you check your console for JS errors?

As you can see in the screenshot CodeMirror is used, and inserting a shortcode (whether manually or with the Fields and Views button) places it inside a span with a cm-shortcode class.

I'm guessing a JS problem prevents that span-wrapping occurring.

#1164063

My issue is resolved now. Thank you!