I can't enable syntax highlighting and script formating in my Developer Instance

harinalamalapu
Giga Expert

Script window is not displayed in my developer instance unless I "Click to disable Syntax highlighting and script formatting".   But when I disabled Syntax highlighting, the script displays as plain text without syntax highlighting. Attached a screenshot, can you please give some hints to fix it?

Script Error.png

When I disable it, the script field appears like below without syntax highlighting feature.

find_real_file.png

1 ACCEPTED SOLUTION

Hari,



I was able to log in, I impersonated the System Administrator user, and viewed the RiskUtils script include. I was able to view it, in Chrome, with the Sytnax Highlighting turned off as well as with it turned on.



I did not observe any JavaScript errors.



This might be unique to your browser. Which browser are you using (Chrome, IE, Firefox, Safari, etc)? What is the version number? And on which platform (Windows, OSX, Linux, etc)?



Also, when *you* reproduce the issue with syntax-highlighting turned on, do you have any Javascript errors in your console?


View solution in original post

12 REPLIES 12

zica
Giga Guru

Hi Hari,



Save the BR or the client script, and open it again.


Sometimes it happens,



Kind regards,


ZA


Do not feel shy to mark correct or helpful answer if it helps or is correct


It happens consistently since long. I still face this issue.coryseering helped me earlier fixing a similar issue in my developer instance here


coryseering
ServiceNow Employee
ServiceNow Employee

Hello Hari,



Are you still unable to see script fields?


Does it happen for all script fields, or only on certain types (like Script Includes or Business Rules)?


        If it's only certain types, is it only specific records of that type, or all records of that type?


Have you tried checking the Developer Tools in your browser, looking in the JavaScript console for errors?


        Are there any?


        If so, exactly what do they say?


harinalamalapu
Giga Expert

Hi Cory,



Yes I am still facing the problem. It happens with all types of script fields like Business Rules, Script Includes, Client Scripts. However, I am not facing this issue in a different instance (Dev instance of my company) when I use it on the same machine and browser, so I am assuming there is something wrong in my developer instance that is causing this issue.