Skip to content

Commit 6f6e81b

Browse files
write README in english
1 parent 48f2807 commit 6f6e81b

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Lit-HTML & Styled Components Extension
22

33
A VS Code extension that provides syntax highlighting and diagnostic features for lit-html templates, styled-components and css-templates in JavaScript/TypeScript projects.
4-
This project builds on the Base-Custom-Components project.
4+
This project builds on the [Base-Custom-Components](https://github.com/node-projects/base-custom-webcomponent/) project.
55

66
## Features
77

@@ -46,6 +46,10 @@ static style = css`
4646

4747
![App Screenshot](images/preview.png "Extension preview with diagnostic")
4848

49+
- In this case, i declared ```.checked``` as a valid attribute only for ```input``` tag
50+
51+
- I also declared ```a-valid-attribut-for-input``` attribute only valid for ```input``` tag and for comparison i also declared ```a-valid-attribut-for-img``` attribute only valid for ```img```
52+
4953
## Installation
5054

5155
### Prerequisites

images/preview.png

3.85 KB
Loading
-3.15 KB
Loading

src/class/customElement.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ class CustomElement implements IHTMLDataProvider {
88
description: 'Custom web component',
99
attributes: [
1010
{ name: '.checked', description: 'Custom attribute' },
11-
{ name: 'ein-gutiger-attribut-fuer-input', description: 'Custom attribute' }
11+
{ name: 'a-valid-attribut-for-input', description: 'Custom attribute' }
1212
]
1313
},
1414
{
1515
name: 'img',
1616
description: 'Custom web component',
1717
attributes: [
18-
{ name: 'ein-gutiger-attribut-fuer-img', description: 'Custom attribute' }
18+
{ name: 'a-valid-attribut-for-img', description: 'Custom attribute' }
1919
]
2020
}
2121
];

0 commit comments

Comments
 (0)