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:
We have a typo here. We used }
instead of )
. Once the error is corrected, the warning view clears automatically:
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.