TOON Language Support for VS Code
Syntax highlighting and language support for TOON (Token-Oriented Object Notation) configuration files.
Features
✨ Syntax Highlighting - Beautiful color coding for .toon files
💬 Comment Support - Line comments with ##
🎨 Token Colors - Distinct colors for keywords, types, strings, numbers, and booleans
🔧 Auto-closing - Automatic closing of brackets and quotes
📝 Smart Indentation - Proper indentation support
Installation
From VS Code Marketplace
- Open VS Code
- Press
Ctrl+P (or Cmd+P on Mac)
- Type:
ext install atharva-baodhankar.toon-vscode
- Press Enter
From npm package
If you've installed toon-config via npm, the extension is automatically available:
npm install toon-config
Usage
Simply open any .toon file and enjoy syntax highlighting!
Example
## Sample TOON Configuration File
OBJ(
STR(appName, "Polystudi"),
BOOL(debug, true),
INT(port, 3001),
LIST(modules, "auth", "api", "db"),
OBJ(database,
STR(host, "localhost"),
INT(port, 27017),
STR(user, "admin")
)
)
Color Scheme
- Keywords (
OBJ, LIST) - Control flow color (blue)
- Types (
STR, INT, FLOAT, BOOL) - Type color (purple)
- Strings - String color (green)
- Numbers - Number color (orange)
- Booleans - Constant color (yellow)
- Comments - Comment color (gray)
Support
Found a bug or have a feature request? Open an issue
Author
Created by @op_athu_17
License
MIT