The HTML syntax editor provides support for editing HTML and Jelly scripts and defines what's rendered when the page is displayed. The HTML syntax editor can contain either static XHTML or dynamically generated content defined as Jelly, and can call script includes and UI Macros.

The syntax editor has these features.
  • HTML and Jelly script support
  • HTML and Jelly syntax coloring, indentation, line numbers, and automatic creation of closing braces and quotes
  • Auto-suggestions for HTML and Jelly tags
  • Script macros for common code shortcuts
Figure 1. HTML syntax editor
Syntax editor for HTML and Jelly scripts.

Editing tips

  • To insert a fixed space anywhere in your code, press Tab.
  • To indent a single line of code, click in the leading white space of the line and then press Tab.
  • To indent one or more lines of code, select the code and then press Tab. To decrease the indentation, press Shift+Tab.
  • To remove one tab from the start of a line of code, click in the line and press Shift+Tab.