mjbvz/vscode-lit-html
소개
JavaScript와 TypeScript의 태그된 템플릿 문자열 안에 있는 HTML에 구문 강조를 적용합니다.
웹 및 앱 개발What you can do
- Syntax highlighting of inline html blocks.
- IntelliSense for html tags and attributes.
- Quick info hovers on tags.
- Formatting support.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalAdds 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
관련 프로젝트 살펴보기
불러오는 중…