Skip to content

gadget-inc/vscode-js-template-tag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

vscode-js-template-tag

Adds JavaScript syntax highlighting for JavaScript template literals like js\1+1``.

Match on

javascript`` | js`` | typescript`` | ts`` | jsx`` | tsx``

Example

const code = ts`
  const truthy = (val: any): boolean => !!val;
`;

Caveat

You are responsible for defining the template literal yourself -- this extension just adds syntax highlighting for it. If you don't need any custom processing, you can use String.raw:

const js = String.raw;
const ts = String.raw;

// later

js`1 + 1`;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published