Vlaams Codex – Platskript (VS Code Extension)
Syntax highlighting, snippets, and run/build tools for Platskript (.plats), the Vlaams Codex language.
Features
- Language support for
.plats (language id: platskript)
- TextMate-based syntax highlighting (keywords, comments,
tekst ... amen, numbers via getal)
- Snippets for common patterns (program skeleton, print, functions, if/else, loops)
- Commands (Output Channel: VlaamsCodex):
- VlaamsCodex: Run Plats File
- VlaamsCodex: Run Selection as Plats
- VlaamsCodex: Show Generated Python
- VlaamsCodex: Build Plats to Python File
- VlaamsCodex: Show CLI Help
- VlaamsCodex: Show CLI Version
- VlaamsCodex: Check Plats File
- VlaamsCodex: Start Plats REPL (runs in an integrated terminal)
- VlaamsCodex: Fortune
- VlaamsCodex: Examples (List/Show/Run/Save)
- VlaamsCodex: Init Project
Requirements
- Install VlaamsCodex so the
plats executable is available.
- Example:
python -m pip install vlaamscodex (or pipx install vlaamscodex)
Configuration
vlaamscodex.platsPath (default: "plats") — path to the plats executable.
Usage
- Run file: Command Palette → VlaamsCodex: Run Plats File
- Run selection: Command Palette → VlaamsCodex: Run Selection as Plats
- Show Python: Command Palette → VlaamsCodex: Show Generated Python
- Build: Command Palette → VlaamsCodex: Build Plats to Python File
- Help/version: Command Palette → VlaamsCodex: Show CLI Help / VlaamsCodex: Show CLI Version
- Check file: Command Palette → VlaamsCodex: Check Plats File
- REPL: Command Palette → VlaamsCodex: Start Plats REPL
- Fortune: Command Palette → VlaamsCodex: Fortune
- Examples: Command Palette → VlaamsCodex: Examples (List) (then optionally Show/Run/Save)
- Init: Command Palette → VlaamsCodex: Init Project
Install from VSIX
Command Palette → Extensions: Install from VSIX...
Development
npm install
npm run compile
npx --yes @vscode/vsce package
Press F5 in VS Code to start an Extension Development Host.
License
MIT. See LICENSE.
| |