File: html.coffee

Defined in: src/languages

Variables Summary

module.exports =
{
  name: "HTML",
  namespace: "html",
  scope: ['text.html'],

  /*
  Supported Grammars
   */
  grammars: ["HTML"],

  /*
  Supported extensions
   */
  extensions: ["html"],
  options: {
    indent_inner_html: {
      type: 'boolean',
      "default": false,
      description: "Indent <head> and <body> sections."
    },
    indent_size: {
      type: 'integer',
      "default": null,
      minimum: 0,
      description: "Indentation size/length"
    },
    indent_char: {
      type: 'string',
      "default": null,
      description: "Indentation character"
    },
    brace_style: {
      type: 'string',
      "default": "collapse",
      "enum": ["collapse", "expand", "end-expand", "none"],
      description: "[collapse|expand|end-expand|none]"
    },
    indent_scripts: {
      type: 'string',
      "default": "normal",
      "enum": ["keep", "separate", "normal"],
      description: "[keep|separate|normal]"
    },
    wrap_line_length: {
      type: 'integer',
      "default": 250,
      description: "Maximum characters per line (0 disables)"
    },
    wrap_attributes: {
      type: 'string',
      "default": "auto",
      "enum": ["auto", "force", "force-aligned", "force-expand-multiline"],
      description: "Wrap attributes to new lines [auto|force|force-aligned|force-expand-multiline]"
    },
    wrap_attributes_indent_size: {
      type: 'integer',
      "default": null,
      minimum: 0,
      description: "Indent wrapped attributes to after N characters"
    },
    preserve_newlines: {
      type: 'boolean',
      "default": true,
      description: "Preserve line-breaks"
    },
    max_preserve_newlines: {
      type: 'integer',
      "default": 10,
      description: "Number of line-breaks to be preserved in one chunk"
    },
    unformatted: {
      type: 'array',
      "default": ['a', 'abbr', 'area', 'audio', 'b', 'bdi', 'bdo', 'br', 'button', 'canvas', 'cite', 'code', 'data', 'datalist', 'del', 'dfn', 'em', 'embed', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'map', 'mark', 'math', 'meter', 'noscript', 'object', 'output', 'progress', 'q', 'ruby', 's', 'samp', 'select', 'small', 'span', 'strong', 'sub', 'sup', 'svg', 'template', 'textarea', 'time', 'u', 'var', 'video', 'wbr', 'text', 'acronym', 'address', 'big', 'dt', 'ins', 'small', 'strike', 'tt', 'pre', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'],
      items: {
        type: 'string'
      },
      description: "List of tags (defaults to inline) that should not be reformatted"
    },
    end_with_newline: {
      type: 'boolean',
      "default": false,
      description: "End output with newline"
    },
    extra_liners: {
      type: 'array',
      "default": ['head', 'body', '/html'],
      items: {
        type: 'string'
      },
      description: "List of tags (defaults to [head,body,/html] that should have an extra newline before them."
    }
  }
}

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: