GitXplorerGitXplorer
m

vscode-lit-html

public
322 stars
77 forks
38 issues

Commits

List of commits on branch master.
Unverified
40ab1beba1dcd9424bc645173b14765144c010d5

1.11.1

mmjbvz committed 5 years ago
Unverified
58fcdc8ce35a727a8eac4e8cb2152ec248012c23

Use vscode-test instead of vscode

mmjbvz committed 5 years ago
Unverified
c9aa8f5aade2f81057f098fb6c1a3f554aa48a46

Update deps

mmjbvz committed 5 years ago
Unverified
925502e32ab12dbf350e2827d112b19ed4b4f2df

Update travis script for newer vscode

mmjbvz committed 5 years ago
Verified
a2b0f6af780bd00153af5cbfc033b6774de9dde9

Merge pull request #74 from kufii/patch-1

mmjbvz committed 5 years ago
Unverified
62d21d324adff66fa5a4a5ce4798cb79a409c36d

trigger another build

kkufii 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