GitXplorerGitXplorer
m

vscode-lit-html

public
322 stars
77 forks
38 issues

Commits

List of commits on branch master.
Verified
5688ed883c4d5bf36888ae06e4e72a1c2a79d18a

Merge pull request #89 from mjbvz/dependabot/npm_and_yarn/lodash-4.17.21

mmjbvz committed 3 years ago
Verified
ff0c4b49b2d9ad71e7de79fbc5c261893974743a

Bump lodash from 4.17.19 to 4.17.21

ddependabot[bot] committed 4 years ago
Verified
b073121bde3bc4f250a0fb83fa2b7ebca12943a7

Merge pull request #81 from mjbvz/dependabot/npm_and_yarn/lodash-4.17.19

mmjbvz committed 4 years ago
Verified
8074fe1b0ddcbd803aaf8d45dca2793a7fb973b6

Bump lodash from 4.17.15 to 4.17.19

ddependabot[bot] committed 5 years ago
Unverified
3ed16d2980bf7d52e0559b85bfac0b74723f9b62

Increase timeout

mmjbvz committed 5 years ago
Unverified
b5b34af31e1b084705d6748d863e968a8e6b1269

Fix travis build script

mmjbvz committed 5 years ago

README

The README file for this repository.

Build Status

Adds syntax highlighting and language support for html inside of JavaScript and TypeScript tagged template strings, such as used in lit-html and other frameworks.

Features

  • Syntax highlighting of inline html blocks.
  • IntelliSense for html tags and attributes.
  • Quick info hovers on tags.
  • Formatting support.
  • Auto closing tags.
  • Folding html.
  • CSS completions in style blocks.
  • Works with literal html strings that contain placeholders.

Usage

The lit-html extension adds highlighting and IntelliSense for lit-html template strings in JavaScript and TypeScript. It works out of the box when you use VS Code's built-in version of TypeScript.

If you are using VS Code 1.30 or older and are using a workspace version of typescript, you must currently configure the TS Server plugin manually by following these instructions

Configuration

You can either configure this plugin using a tsconfig or jsconfig as described here, or configure the plugin using VS Code. This requires VS Code 1.30+ and TS 3.2+. Note the VS Code based configuration override the tsconfig or jsconfig configuration.

Tags

This extension adds html IntelliSense to any template literal tagged with html or raw:

import {html} from 'lit-html'

const a = html`
    <div></div>
`

You can enable IntelliSense for other tag names by settings "lit-html.tags":

"lit-html.tags": [
    "html",
    "template"
]

Formatting

The plugin formats html code by default. You can disable this by setting "lit-html.format.enabled": false:

"lit-html.format.enabled": false