HTML formatting plugin for dprint, using the hast
crate.
Install and setup dprint, then:
- Run
dprint config add malobre/html
- (Optional) Install plugins for the languages embeded in your html files (css, javascript, ..).
- Ensure
.html
file extensions are matched in anincludes
pattern:{ // -- snip -- "includes": [ "**/*.html" ] }
- Add a
html
configuration property if desired:{ // -- snip -- "html": { // vue config goes here } }
Key | Default | Description |
---|---|---|
lineWidth |
dprint | Desired maximum line width |
indentWidth |
2 |
Width of the indentation |