---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# Syntax editor plugin

# Syntax editor plugin {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Enable the syntax editor plugin to use the syntax editor.

The syntax editor enables the following features for all script fields:

* JavaScript syntax coloring, indentation, line numbers, and automatic creation of closing braces and quotes
* Code editing functions
* Code syntax checking
* Script macros for common code shortcuts

{#c_SyntaxEditorPlugin__ul_urj_kzx_zp}  
Figure 1. JavaScript syntax editor

The syntax editor can be disabled or enabled by modifying the
glide.ui.javascript_editor property in the sys_properties.list. In
addition, administrators can configure the syntax editor to show error and warning indicators
next to a line of code that contains an error by modifying the
glide.ui.syntax_editor.show_warnings_errors property. For information on
the sys_properties.list, refer to [Available system properties](https://www.servicenow.com/docs/access?context=r_AvailableSystemProperties&version=xanadu&pubname=xanadu-platform-administration&ft:locale=en-US).  
Note:  
Administrators can disable or enable the syntax editor for all users, regardless of user preference.
* **[Syntax editor JavaScript support](https://servicenow-prod.fluidtopics.net/CkQ_rL~DG6ZSFpckuN8COw)**   
  The syntax editor provides editing functions to support editing JavaScript scripts.
* **[Syntax editor keyboard shortcuts and actions](https://servicenow-prod.fluidtopics.net/NwyniLPtQwsO5L2fg1kLfw)**   
  The syntax editor offers keyboard shortcuts and actions to assist in writing code.
* **[Syntax editor macros](https://servicenow-prod.fluidtopics.net/Cvp1xxhZqsGgdnJjVNNRQA)**   
  Script macros provide shortcuts for typing commonly used code. To insert macro text into a script field, enter the macro keyword followed by the Tab.
* **[Create or modify a script macro](https://servicenow-prod.fluidtopics.net/4C0OT3Exsa98X7wWFKaUKQ)**   
  Administrators can define new script macros or modify existing script macros.

