Skip to content

malobre/dprint-plugin-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dprint-plugin-html

HTML formatting plugin for dprint, using the hast crate.

Usage

Install and setup dprint, then:

  1. Run
    dprint config add malobre/html
  2. (Optional) Install plugins for the languages embeded in your html files (css, javascript, ..).
  3. Ensure .html file extensions are matched in an includes pattern:
    {
      // -- snip --
      "includes": [
        "**/*.html"
      ]
    }
  4. Add a html configuration property if desired:
    {
      // -- snip --
      "html": {
        // vue config goes here
      }
    }

Configuration

Key Default Description
lineWidth dprint Desired maximum line width
indentWidth 2 Width of the indentation

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages