Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>soltag-highlighterNew to Visual Studio Code? Get it now.
soltag-highlighter

soltag-highlighter

Hayden Shively

|
2 installs
| (0) | Free
Syntax highlighting for inline Solidity (sol`...`) in TypeScript
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

soltag-highlighter

Syntax highlighting for inline Solidity inside sol`...` tagged template literals in JavaScript and TypeScript.

Features

  • Solidity syntax highlighting inside sol tagged templates
  • Supports ${...} interpolations with JS/TS highlighting
  • Supports sol(...) call syntax, e.g. sol(/* imports */)`...`
  • Works in .js, .ts, .jsx, and .tsx files

Usage

Write a tagged template with the sol tag and it will be highlighted as Solidity:

const contract = sol`
  pragma solidity ^0.8.0;

  contract Foo {
    uint256 public x;
  }
`;

Interpolations are highlighted as JS/TS:

const contract = sol`
  ${importSomeLibrary}

  contract Bar {
    uint256 public y;
  }
`;
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft