Formula editor features

An overview of all basic features the formula editor offers as of version 3.6.0

At the moment, the new formula editor features are available for the web app (app.ninox.com) as well as the Mac app.

Line numbers

Line numbers are displayed in the left margin of the formula editor window.

How to use

Line numbers are always visible by default.

Example

Indentation

Indents a code block automatically.

Code formatting

Takes your code and prettifies it to conform to a consistent style. Wraps code and adds or removes white space when necessary.

How to use

Access the formula editor to format existing code, click OK to leave the editor. The next time you open the formula editor again, this code appears newly formatted.

Example

Auto-completion

While you type, a pop-up appears next to the cursor displaying suggestions to complete your script.

How to use

To select the first option from the list, press the ENTER key.

To select another option, use the arrow keys, then confirm your selection with the ENTER key.

Example

Syntax highlighting

While you type, text is highlighted in different colors.

SyntaxColor

String (text)

Keyword

Function

Built-in value

Variable/Table/Field

Operator

Number

Data type

How to use

To trigger syntax highlighting, type an expression.

Example

The current location of the written code is displayed above the formula editor's contents.

How to use

The location is displayed automatically.

Example

Error and warning marks

Displays errors and warnings while you script and suggest corrections.

How to use

While you type, gutter line numbers with erroneous code are highlighted and the code itself is underlined in red. To reveal the error message, hover above the line number.

When you make a syntax error, the formula editor only highlights the first error, even when more syntax error follow that first one. This happens because the following script cannot be parsed due to the preceding syntax error. When you make a reference error, the formula editor highlights each error independently of its position in the script. So, when a syntax error precedes a reference error, only the foregoing syntax error is highlighted.

Example

Search and replace

Search and replace text, variables, and expressions within a code block. Works for

  • Match Whole Word,

  • Match Case, and

  • Use Regular Expression.

How to use

To search, enter text in the search bar or press CMD+F (macOS) or Ctrl+F (Windows).

Example

Brace matching and brace auto-completion

Highlights corresponding parentheses and automatically completes open parentheses.

How to use

To visually locate a parenthesis' match, use the arrow keys to select a parenthesis and highlight its counterpart.

To auto-complete parentheses, type an opening parenthesis.

Last updated