Merge pull request #1594 from KeithClinard/patch-1
Add Pretty Diff support for Mustache
This commit is contained in:
commit
67a7de84f3
|
@ -144,7 +144,7 @@ See [all supported options in the documentation at `docs/options.md`](docs/opti
|
|||
| Lua | `Lua` |`.lua` | [`Lua beautifier`](https://www.perl.org/) (Default) |
|
||||
| Markdown | `GitHub Markdown` |`.markdown`, `.md` | [`Remark`](https://github.com/wooorm/remark), [`Tidy Markdown`](https://github.com/slang800/tidy-markdown) (Default) |
|
||||
| Marko | `Marko` |`.marko` | [`Marko Beautifier`](https://github.com/marko-js/marko-prettyprint) (Default) |
|
||||
| Mustache | `HTML (Mustache)` |`.mustache` | [`JS Beautify`](https://github.com/beautify-web/js-beautify) (Default) |
|
||||
| Mustache | `HTML (Mustache)` |`.mustache` | [`JS Beautify`](https://github.com/beautify-web/js-beautify) (Default), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) |
|
||||
| Nunjucks | `Nunjucks`, `Nunjucks Templates`, `HTML (Nunjucks Templates)` |`.njk`, `.nunjucks` | [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
||||
| Objective-C | `Objective-C`, `Objective-C++` |`.m`, `.mm`, `.h` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default), [`clang-format`](https://clang.llvm.org/docs/ClangFormat.html) |
|
||||
| OCaml | `OCaml` |`.ml` | [`ocp-indent`](https://www.typerex.org/ocp-indent.html) (Default) |
|
||||
|
|
|
@ -8047,26 +8047,26 @@ Maximum characters per line (0 disables) (Supported by Marko Beautifier)
|
|||
|
||||
#### [Mustache](#mustache)
|
||||
|
||||
**Supported Beautifiers**: [`JS Beautify`](#js-beautify)
|
||||
**Supported Beautifiers**: [`JS Beautify`](#js-beautify) [`Pretty Diff`](#pretty-diff)
|
||||
|
||||
| Option | JS Beautify |
|
||||
| --- | --- |
|
||||
| `disabled` | :white_check_mark: |
|
||||
| `default_beautifier` | :white_check_mark: |
|
||||
| `beautify_on_save` | :white_check_mark: |
|
||||
| `brace_style` | :white_check_mark: |
|
||||
| `end_with_newline` | :white_check_mark: |
|
||||
| `extra_liners` | :white_check_mark: |
|
||||
| `indent_char` | :white_check_mark: |
|
||||
| `indent_inner_html` | :white_check_mark: |
|
||||
| `indent_scripts` | :white_check_mark: |
|
||||
| `indent_size` | :white_check_mark: |
|
||||
| `max_preserve_newlines` | :white_check_mark: |
|
||||
| `preserve_newlines` | :white_check_mark: |
|
||||
| `unformatted` | :white_check_mark: |
|
||||
| `wrap_attributes` | :white_check_mark: |
|
||||
| `wrap_attributes_indent_size` | :white_check_mark: |
|
||||
| `wrap_line_length` | :white_check_mark: |
|
||||
| Option | JS Beautify | Pretty Diff |
|
||||
| --- | --- | --- |
|
||||
| `disabled` | :white_check_mark: | :white_check_mark: |
|
||||
| `default_beautifier` | :white_check_mark: | :white_check_mark: |
|
||||
| `beautify_on_save` | :white_check_mark: | :white_check_mark: |
|
||||
| `brace_style` | :white_check_mark: | :x: |
|
||||
| `end_with_newline` | :white_check_mark: | :x: |
|
||||
| `extra_liners` | :white_check_mark: | :x: |
|
||||
| `indent_char` | :white_check_mark: | :white_check_mark: |
|
||||
| `indent_inner_html` | :white_check_mark: | :x: |
|
||||
| `indent_scripts` | :white_check_mark: | :x: |
|
||||
| `indent_size` | :white_check_mark: | :white_check_mark: |
|
||||
| `max_preserve_newlines` | :white_check_mark: | :x: |
|
||||
| `preserve_newlines` | :white_check_mark: | :white_check_mark: |
|
||||
| `unformatted` | :white_check_mark: | :x: |
|
||||
| `wrap_attributes` | :white_check_mark: | :x: |
|
||||
| `wrap_attributes_indent_size` | :white_check_mark: | :x: |
|
||||
| `wrap_line_length` | :white_check_mark: | :white_check_mark: |
|
||||
|
||||
**Description**:
|
||||
|
||||
|
@ -8097,7 +8097,7 @@ Disable Mustache Beautification
|
|||
|
||||
**Type**: `string`
|
||||
|
||||
**Enum**: `JS Beautify`
|
||||
**Enum**: `JS Beautify` `Pretty Diff`
|
||||
|
||||
**Description**:
|
||||
|
||||
|
@ -8219,11 +8219,11 @@ List of tags (defaults to [head,body,/html] that should have an extra newline be
|
|||
|
||||
**Type**: `string`
|
||||
|
||||
**Supported Beautifiers**: [`JS Beautify`](#js-beautify)
|
||||
**Supported Beautifiers**: [`JS Beautify`](#js-beautify) [`Pretty Diff`](#pretty-diff)
|
||||
|
||||
**Description**:
|
||||
|
||||
Indentation character (Supported by JS Beautify)
|
||||
Indentation character (Supported by JS Beautify, Pretty Diff)
|
||||
|
||||
**Example `.jsbeautifyrc` Configuration**
|
||||
|
||||
|
@ -8297,11 +8297,11 @@ Indent <head> and <body> sections. (Supported by JS Beautify)
|
|||
|
||||
**Type**: `integer`
|
||||
|
||||
**Supported Beautifiers**: [`JS Beautify`](#js-beautify)
|
||||
**Supported Beautifiers**: [`JS Beautify`](#js-beautify) [`Pretty Diff`](#pretty-diff)
|
||||
|
||||
**Description**:
|
||||
|
||||
Indentation size/length (Supported by JS Beautify)
|
||||
Indentation size/length (Supported by JS Beautify, Pretty Diff)
|
||||
|
||||
**Example `.jsbeautifyrc` Configuration**
|
||||
|
||||
|
@ -8349,11 +8349,11 @@ Number of line-breaks to be preserved in one chunk (Supported by JS Beautify)
|
|||
|
||||
**Type**: `boolean`
|
||||
|
||||
**Supported Beautifiers**: [`JS Beautify`](#js-beautify)
|
||||
**Supported Beautifiers**: [`JS Beautify`](#js-beautify) [`Pretty Diff`](#pretty-diff)
|
||||
|
||||
**Description**:
|
||||
|
||||
Preserve line-breaks (Supported by JS Beautify)
|
||||
Preserve line-breaks (Supported by JS Beautify, Pretty Diff)
|
||||
|
||||
**Example `.jsbeautifyrc` Configuration**
|
||||
|
||||
|
@ -8522,11 +8522,11 @@ Indent wrapped attributes to after N characters (Supported by JS Beautify)
|
|||
|
||||
**Type**: `integer`
|
||||
|
||||
**Supported Beautifiers**: [`JS Beautify`](#js-beautify)
|
||||
**Supported Beautifiers**: [`JS Beautify`](#js-beautify) [`Pretty Diff`](#pretty-diff)
|
||||
|
||||
**Description**:
|
||||
|
||||
Maximum characters per line (0 disables) (Supported by JS Beautify)
|
||||
Maximum characters per line (0 disables) (Supported by JS Beautify, Pretty Diff)
|
||||
|
||||
**Example `.jsbeautifyrc` Configuration**
|
||||
|
||||
|
|
|
@ -49,6 +49,7 @@ module.exports = class PrettyDiff extends Beautifier
|
|||
EJS: true
|
||||
HTML: true
|
||||
Handlebars: true
|
||||
Mustache: true
|
||||
Nunjucks: true
|
||||
XML: true
|
||||
SVG: true
|
||||
|
|
Loading…
Reference in New Issue