Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Button Card Javascript Syntax Highlighting in VSCodeNew to Visual Studio Code? Get it now.
Button Card Javascript Syntax Highlighting in VSCode

Button Card Javascript Syntax Highlighting in VSCode

Will Furphy

|
1,602 installs
| (0) | Free
Syntax highlighting of Javascript code blocks in YAML which are enclosed by triple square brackets. Used when configuring the advanced javascript templates properties of Button-Card cards for Home Assistant Lovelace dashboards.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Button Card Javascript Syntax Highlighting in VSCode

release license

This is a very niche extension for Visual Studio Code which provides syntax highlighting of Javascript code blocks in YAML which are enclosed by triple square brackets ([[[ ... ]]]). Used when configuring the advanced javascript templates properties of Button-Card cards for Home Assistant Lovelace dashboards.

  • Syntax highlighting provided using built-in Javascript grammar
  • "Double quoted" and block YAML strings supported
  • Works with the standard YAML language and the home-assistant YAML language created by the Home Assistant Config Helper plugin.

I made this while I was working on Creative Button Card Templates and could not handle writing any more JS without syntax highlighting. Hopefully it gives someone else the same relief it gave me.

Installation

Install from VSCode Marketplace

Preview

VSCode BC JS Example

The preview above is using the OneDark Pro theme, however this plugin will work with any theme that supports yaml and javascript.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft