TOGE Language Support
Syntax highlighting and file icon support for TOGE (Tree Option Game Encoding) language in VS Code.
Features
- Syntax Highlighting - Color-coded syntax for TOGE language elements
- Custom File Icon - Distinctive icon for .toge files in the file explorer
- Language Support - Full language configuration for TOGE files
Installation
- Copy this extension to your VS Code extensions folder
- Reload VS Code
- Open any
.toge file to see syntax highlighting
TOGE Syntax
TOGE is a tree-based game encoding language for defining branching narratives and interactive choice systems.
Basic Structure
'Header comment'
setTreeDefault = ["type": "text"]
random {
1["type": "input"]: Success! You found something
"Yes"
You chose yes.
"No"
You chose no.
}
Supported Elements
- Comments:
// line comments and /* block comments */
- Type Modifiers:
["type": "text"], ["type": "input"]
- Strings: Double-quoted text content
- Node IDs: Numeric identifiers for tree nodes
- Tree Structures: Nested hierarchical organization with indentation
License
MIT
| |