Edit online

JavaScript Preferences

To configure the JavaScript format options, open the Preferences dialog box (Options > Preferences) and go to Editor > Format > JavaScript.

The following options control the behavior of the Format and Indent action:

  • Start curly brace on new line - Opening curly braces start on a new line.
  • Preserve empty lines - Empty lines in the JavaScript code are preserved. This option is selected by default.
  • Allow formatting embedded JavaScript - Applied only to XHTML documents, this option allows Oxygen XML Author to format embedded JavaScript code, taking precedence over the Schema-aware format and indent option. This option is selected by default.