Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fast-tagged-templates

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-tagged-templates

Syntax highlighting support for CSS and HTML tagged template literals

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

FAST Tagged Template Literals

License: MIT

fast-tagged-templates is a Visual Studio Code extension which enables syntax highlighting for css and html tagged template literals in JavaScript and TypeScript files.

Screenshots

CSS Tagged Templates

Both tagged template literals (css`.style {}`;) and comment-style untagged template literals (/* css */`.style {}`;) are supported.

CSS tagged template

HTML Tagged Templates

In addition to the standard styles, the html syntax highlighting also allows for optional generics in Typescript (html<any>`<div></div>`; and /* html<Generic> */`<div></div>`;).

HTML tagged template

The theme used in the screenshots is Boxy Tomorrow.

Installation

Extension Marketplace

Coming soon!

Manual installation

To install the extension manually, copy or symlink the fast-tagged-templates directory to your extensions folder.

Recommendations

Adjust existing themes

Some theme extensions may need minor adjustments, depending on how their scopes are maintained. To override certain scopes, you may need to add textMateRules to your user settings. For example:

"editor.tokenColorCustomizations": {
  // Fix parentheses on functions and expressions in strings for this particular theme
  "[Boxy Tomorrow]": {
    "textMateRules": [
      { "settings": { "foreground": "#8ABEB7" }, "scope": "meta.brace.round.ts"}
      { "settings": { "foreground": "#C5C8C6" }, "scope": "meta.template.expression.ts"}
    ]
  }
}

FAQs

Package last updated on 08 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc