{"id":13452134,"url":"https://github.com/mjbvz/vscode-lit-html","last_synced_at":"2025-04-06T03:07:40.218Z","repository":{"id":41309028,"uuid":"106485115","full_name":"mjbvz/vscode-lit-html","owner":"mjbvz","description":"Adds syntax highlighting for html inside of JavaScript and TypeScript tagged template strings","archived":false,"fork":false,"pushed_at":"2023-03-02T13:03:42.000Z","size":7915,"stargazers_count":324,"open_issues_count":38,"forks_count":77,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-30T01:11:48.133Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=bierner.lit-html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mjbvz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-10-11T00:18:30.000Z","updated_at":"2025-02-11T07:36:34.000Z","dependencies_parsed_at":"2024-01-07T18:16:41.863Z","dependency_job_id":"dc965dc7-db52-4c31-9ed0-fb89602abcaa","html_url":"https://github.com/mjbvz/vscode-lit-html","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjbvz%2Fvscode-lit-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjbvz%2Fvscode-lit-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjbvz%2Fvscode-lit-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjbvz%2Fvscode-lit-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mjbvz","download_url":"https://codeload.github.com/mjbvz/vscode-lit-html/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247427006,"owners_count":20937201,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T07:01:14.197Z","updated_at":"2025-04-06T03:07:40.196Z","avatar_url":"https://github.com/mjbvz.png","language":"JavaScript","funding_links":[],"categories":["IDE Plugins","JavaScript","others","VS Code"],"sub_categories":[],"readme":"[![](https://vsmarketplacebadge.apphb.com/version/bierner.lit-html.svg)](https://marketplace.visualstudio.com/items?itemName=bierner.lit-html) [![Build Status](https://travis-ci.org/mjbvz/vscode-lit-html.svg?branch=master)](https://travis-ci.org/mjbvz/vscode-lit-html)\n\nAdds syntax highlighting and language support for html inside of JavaScript and TypeScript tagged template strings, such as used in [lit-html](https://github.com/PolymerLabs/lit-html) and other frameworks.\n\n![](https://github.com/mjbvz/vscode-lit-html/raw/master/docs/example.gif)\n\n\n## Features\n\n- Syntax highlighting of inline html blocks.\n- IntelliSense for html tags and attributes.\n- Quick info hovers on tags.\n- Formatting support.\n- Auto closing tags.\n- Folding html.\n- CSS completions in style blocks.\n- Works with literal html strings that contain placeholders.\n\n## Usage\nThe 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.\n\nIf you are using VS Code 1.30 or older and are [using a workspace version of typescript](https://code.visualstudio.com/Docs/languages/typescript#_using-newer-typescript-versions), you must currently configure the TS Server plugin manually by following [these instructions](https://github.com/Microsoft/typescript-lit-html-plugin#usage)\n\n## Configuration\n\nYou can either configure this plugin using a `tsconfig` or `jsconfig` as described [here](https://github.com/Microsoft/typescript-lit-html-plugin#configuration), 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.\n\n### Tags\nThis extension adds html IntelliSense to any template literal [tagged](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals) with `html` or `raw`:\n\n```js\nimport {html} from 'lit-html'\n\nconst a = html`\n    \u003cdiv\u003e\u003c/div\u003e\n`\n```\n\nYou can enable IntelliSense for other tag names by settings `\"lit-html.tags\"`:\n\n```json\n\"lit-html.tags\": [\n    \"html\",\n    \"template\"\n]\n```\n\n### Formatting\nThe plugin formats html code by default. You can disable this by setting `\"lit-html.format.enabled\": false`:\n\n```json\n\"lit-html.format.enabled\": false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjbvz%2Fvscode-lit-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmjbvz%2Fvscode-lit-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjbvz%2Fvscode-lit-html/lists"}