Skip to content

Commit baa0f42

Browse files
authored
Add languages to code blocks
1 parent 8b423c4 commit baa0f42

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ The most simple HTML5 forms validator
1919

2020
## Install
2121

22-
```
22+
```console
2323
npm i html5-form-validator
2424
```
2525

2626
or
2727

28-
```
28+
```console
2929
yarn add html5-form-validator
3030
```
3131

@@ -35,19 +35,19 @@ Just download this repository and link the files located in dist folder.
3535

3636
## Usage
3737

38-
```
38+
```javascript
3939
import 'html5-form-validator';
4040
```
4141

4242
Then initialize with default settings:
4343

44-
```
44+
```javascript
4545
new html5formValidation();
4646
```
4747

4848
or supply your own
4949

50-
```
50+
```javascript
5151
const form = document.querySelector('#form');
5252

5353
new html5formValidation(form, {

0 commit comments

Comments
 (0)