Skip to content

Syntax Checking

Purpose

An editor performs Syntax Checking and notifies the user of syntax errors in their program/script.

Usage

Rapise performs Syntax Checking as you type into the Source Editor. Messages regarding syntax errors can be found in the Warning View.

For example, you begin writing a function:

syntax checking

We have a typo here. We used } instead of ). Once the error is corrected, the warning view clears automatically:

syntax checking 2

Custom JS Validation and Formatting

To enforce your own rules for JavaScript validation and formatting, you can utilize linters or JS beautifiers. This can be achieved by applying the OnTextSaved callback for your framework or for the entire PC.

For an example of a customizable JS beautifier and formatter, you can refer to here resource. It provides a starting point that can be further customized and configured according to your specific needs.

See Also