Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

 

4 REPLIES 4

Vishal_Jaiswal
Mega Guru

Hi @saikumarkak ,

 

This looks platform issue.

Just delete the cache from your instance by using cache.do and logout, and relogin after closing the browser.

If this doesn't work, then inspect and check error in the browser console.

 

Regards,

Vishal

Anand2799
Tera Guru

Hi @saikumarkak ,

 

Verify the system property "glide.ui.javascript_editor" is set to true to show modern UI editor.

 

Thanks

Anand

@ Anand2799,
Thanks for your reply.
Here, my main concern is i can't even search that property in system properties table. because that filter option or search function by name both are not working not only those two I can't even see the options when I right click. I can't even see total how many system properties are included. this issue is not only on system properties table also in client scripts, Business rules, UI actions etc.... 

Hi @saikumarkak ,

 

As @Vishal_Jaiswal suggested, try clearing cache from instance.

In addition, also clear cache from your browser, close and reopen your browser. 

You can also try it in another browser OR even restart your laptop.

 

If any of these doesn't resolve your issue and if it's a customer instance create a HI case if everyone facing same issue.