Skip to content

Latest commit

 

History

History
41 lines (34 loc) · 1 KB

README.md

File metadata and controls

41 lines (34 loc) · 1 KB

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