Scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
What's the use case for disabling syntax highlighting in the Script Editor?
noticed there's a feature in the ServiceNow Script Editor that allows you to disable syntax highlighting and script formatting. I'm curious - what's the practical reason for this feature?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
I don't think it has any use-case.
I have never seen any developer disabling that.
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @Shreneek
It might simply be to give users a plain text option. Some users may want to use it as plain text rather than code. I know this isn’t a strong explanation, but it could be one possible reason.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
59m ago
Hi @Shreneek,
it's just the code visualisation, if you disable it will look like a simple text, no colours.
Disabled on the left, enabled on the right:
This is for user preferences... I guess the left side was the original legacy option and with time the right side was introduced giving the chance to select. Nothing else really.
No AI was used in the writing of this post. Pure #GlideFather only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6m ago
Hello @Shreneek ,
I don’t think there is any strong use case for disabling this option. When the enhanced Script Editor is enabled, it provides features similar to Visual Studio Code, such as auto-completion, syntax highlighting, and error indication for incorrect syntax. These features make development easier, faster, and more interactive.
When this option is disabled, the editor behaves like a normal notepad, where you write code without any assistance, highlighting, or validation support, which is generally not helpful for developers
If this helps you then mark it as helpful and accept as solution.
Regards,
Aditya,
technical Consultant
