JavaScript syntax editor
concept australia Updated Sep 10, 2026 1 min read c_SyntaxEditor.md
The JavaScript syntax editor provides support for editing JavaScript scripts.
With the JavaScript syntax editor, you can use the following features:
- JavaScript syntax coloring, indentation, line numbers, and automatic creation of closing braces and quotes
- Context menu for script includes, API, and tables
- Script macros for common code shortcuts
- Linting using the ESLint utility
[Omitted image "JavaScriptSyntaxEditor.png"] Alt text: JavaScript code in the syntax editor
Configuring the syntax editor
The Syntax Editor plugin (com.glide.syntax_editor) is required to use this functionality. To configure the JavaScript syntax editor functionality on an instance, you can use the following system properties:
- glide.ui.javascript_editor: Turn on or off using the JavaScript syntax editor for script fields.
- glide.ui.syntax_editor.show_warnings_errors: Configure whether to show indicators next to a line of code that contains an issue for errors, warnings, both, or none.
- glide.ui.syntax_editor.linter.eslint_config: View or modify the default linting configurations for scripts.
- glide.ui.syntax_editor.linter.eslint_config.ecmascript2021: View or modify the default linting configurations for scripts using the ECMAScript 2021 (ES12) JavaScript mode.
- glide.ui.syntax_editor.context_menu: Turn on or off showing the context menu for script includes, Glide APIs, and tables in the syntax editor.
For more information about system properties, see Available system properties.
- Using the JavaScript syntax editor
The syntax editor provides editing functions to support editing JavaScript scripts. - Create a script macro for the syntax editor
Administrators can define new script macros or modify existing script macros.
Parent Topic:Exploring scripting
47 lines · 2.8 KB
--- title: JavaScript syntax editor description: The JavaScript syntax editor provides support for editing JavaScript scripts. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/api-reference/scripts/c\_SyntaxEditor.html release: australia product: Scripts classification: scripts topic_type: concept last_updated: "2026-09-10" reading_time_minutes: 1 breadcrumb: [Explore, Scripting, API implementation, API implementation and reference] --- # JavaScript syntax editor The JavaScript syntax editor provides support for editing JavaScript scripts. With the JavaScript syntax editor, you can use the following features: - JavaScript syntax coloring, indentation, line numbers, and automatic creation of closing braces and quotes - Context menu for script includes, API, and tables - Script macros for common code shortcuts - Linting using the ESLint utility \[Omitted image "JavaScriptSyntaxEditor.png"\] Alt text: JavaScript code in the syntax editor ## Configuring the syntax editor The Syntax Editor plugin \(com.glide.syntax\_editor\) is required to use this functionality. To configure the JavaScript syntax editor functionality on an instance, you can use the following system properties: - **glide.ui.javascript\_editor**: Turn on or off using the JavaScript syntax editor for script fields. - **glide.ui.syntax\_editor.show\_warnings\_errors**: Configure whether to show indicators next to a line of code that contains an issue for errors, warnings, both, or none. - **glide.ui.syntax\_editor.linter.eslint\_config**: View or modify the default linting configurations for scripts. - **glide.ui.syntax\_editor.linter.eslint\_config.ecmascript2021**: View or modify the default linting configurations for scripts using the ECMAScript 2021 \(ES12\) JavaScript mode. - **glide.ui.syntax\_editor.context\_menu**: Turn on or off showing the context menu for script includes, Glide APIs, and tables in the syntax editor. For more information about system properties, see [Available system properties](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/r_AvailableSystemProperties.md). - **[Using the JavaScript syntax editor](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/scripts/r_EdtJvaScptWSyntxEdtr.md)** The syntax editor provides editing functions to support editing JavaScript scripts. - **[Create a script macro for the syntax editor](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/scripts/t_ManageScriptMacros.md)** Administrators can define new script macros or modify existing script macros. **Parent Topic:**[Exploring scripting](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/scripts/c_Script.md)
| title | JavaScript syntax editor |
| description | The JavaScript syntax editor provides support for editing JavaScript scripts. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/api-reference/scripts/c\_SyntaxEditor.html |
| release | australia |
| product | Scripts |
| classification | scripts |
| topic_type | concept |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | ExploreScriptingAPI implementationAPI implementation and reference |