Custom VS Code syntax highlighting for Bruno API (.bru) files with JavaScript and XML support.
⚠️ Note: Example.brufiles are for demonstration only and have not been tested.
- Bruno blocks:
meta {},post {},script:post-response {},tests {}, etc. - JavaScript highlighting in script/test blocks
- XML highlighting in multipart-form blocks
- JSON highlighting for configuration blocks
- Variables:
{{variable-name}}highlighted consistently
- Download
bruno-custom-syntax-highlighter-2.0.0.vsixfrom releases - VS Code →
Ctrl+Shift+P→ "Extensions: Install from VSIX..." - Select the downloaded file
git clone https://github.com/your-username/bruno-syntax-extension.git
cd bruno-syntax-extension
npm install -g @vscode/vsce
vsce package
code --install-extension bruno-custom-syntax-highlighter-2.0.0.vsix- Open any
.brufile - Language will be detected automatically
- Or manually select "Bruno Custom" in language selector
Uses VS Code standard grammars for maximum compatibility:
"include": "source.js"→ JavaScript highlighting"include": "text.xml"→ XML highlighting"include": "source.json"→ JSON highlighting
Benefits: 60% less code, better performance, automatic updates.
MIT License - see LICENSE file for details.