how to enable syntax highlighting and script formatting in servicenow

saikumarkak
Tera Contributor

When I open any script-related page in ServiceNow—such as Script Includes, Client Scripts, or Business Rules—the code appears only in black and white, and the Format Code button does not work. The script fields display as all grey text, and toggling the editor has no effect. Additionally, when I open the Script Include list, the filter and search options are not functioning. Similar issues occur on other lists, like the System Properties list. Furthermore, the right-click functionality is broken across all pages; normally, right-clicking shows options like Save or Insert, but these options are not appearing. How can I resolve this issue?

 

saikumarkak_0-1764305599028.png

 

9 REPLIES 9

@ Anand2799 ,
Thank you for your response.
I have cleared the cache from instance and also from browser. I tried in another instance also the issue will be the same and when I'm going to enable the syntax highlighting and script formatting this message is popped up.

saikumarkak_0-1764563555346.png

 

@ Anand2799 ,

I have verified the system property "glide.ui.javascript_editor". it's in true only.

saikumarkak_0-1764564559368.png

 

Ankur Bawiskar
Tera Patron
Tera Patron

@saikumarkak 

check this

Syntax Editor not working as expected 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar,

Can you help me to solve this issue. I already checked that KB and checked that prompt in command prompt. I didn't understand the response.

@saikumarkak 

is this for customer instance?

If yes and if nothing has helped please raise a case with ServiceNow

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader