TRX Syntax Highlighting for VS Code
Official VS Code extension for .trx file syntax highlighting - the Trivx Infrastructure & Workflow Definition Language.
Features
- 🎨 Complete syntax highlighting for all TRX keywords and sections
- 💬 Comment support with
#
- 🔤 Keyword highlighting for core sections:
app, infra, pipeline, env, monitoring, ai, self_heal, sre, metadata
- 🌐 Provider highlighting for cloud providers:
aws, gcp, azure
- 🔧 Runtime highlighting for
docker, container, serverless, vm
- 🚀 Framework highlighting for popular frameworks:
express, nextjs, fastapi, flask, etc.
- 📦 Strategy highlighting for deployment strategies:
rolling, blue-green, canary
- ✨ Auto-closing pairs for brackets and quotes
- 📐 Proper indentation and folding support
Supported File Extensions
Installation
From VSIX
- Download the
.vsix file
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Click on the
... menu → "Install from VSIX..."
- Select the downloaded
.vsix file
From Source
cd vscode-trx-syntax
npm install -g vsce
vsce package
This generates a .vsix file that can be installed in VS Code.
Usage
Simply open any .trx file in VS Code and syntax highlighting will automatically activate.
Example
version: 1.0.0
app:
name: my-app
framework: express
runtime: node
ports: [3000]
infra:
provider: aws
region: us-east-1
runtime: docker
autoscaling: true
pipeline:
build:
command: npm run build
deploy:
strategy: rolling
trigger: on-merge
Contributing
Found a bug or want to suggest an improvement? Please open an issue!
License
MIT
Enjoy coding with TRX! 🚀
| |