Chapter 38

Create and test a profile

  1. Open Settings ▸ Library ▸ Syntax Profiles.
  2. Duplicate a close built-in or create a new profile.
  3. In Overview, set name, identifiers, extensions, and optional inheritance.
  4. In Rules, add the smallest construct you need.
  5. Open Test Sample, paste representative source, and choose Check sample.
  6. 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.