Chapter 38
Create and test a profile
- Open Settings ▸ Library ▸ Syntax Profiles.
- Duplicate a close built-in or create a new profile.
- In Overview, set name, identifiers, extensions, and optional inheritance.
- In Rules, add the smallest construct you need.
- Open Test Sample, paste representative source, and choose Check sample.
- Save, activate the profile in a disposable document, and compare Edit, Outline, Preview, and export.
Test boundaries: start and end of file, blank lines, nested constructs, Unicode, an unclosed delimiter, and text that should not match. A profile is trustworthy when it rejects near misses as well as recognizes examples.
Use Set as New Baseline after a known-good revision. Reset to Baseline discards later experiments. Duplicate before a risky redesign.