Syntax highlighting support for the Candli activity language used by .cact tutorial/activity files.
- Syntax highlighting for Candli activity files
- Bracket matching and auto-closing
- Folding support for step bodies
- Grammar tests for the main parser-backed constructs
The grammar is based on the current Candli activity parser in app-core/src/activity/parser.rs and on the shipped activity files in the game creator repository.
stepheaders with optionalimagepaths- Step descriptions as multiline quoted strings
define,capture,check, andrunitems- Configuration changes with
+,-,@, and>operators achievesmetadata andifrun metadata- Rule statements,
unique,=>, relation operators, and...wildcards - Object kinds (
background,kinematic,dynamic,foreground,screen) - Mean keywords (
arithmetic,geometric,harmonic)
Search for "Candli" in the VS Code extensions panel.
git clone https://github.com/enlightware/cact-vscode.git
cd cact-vscode
npm install
npm run package
code --install-extension cact-*.vsixPrerequisites:
- Node.js 18+
- npm
Install dependencies:
make installValidate the TextMate grammar:
make testPackage the extension:
make packageApache-2.0