Class: PrettyDiff
Defined in: | src/beautifiers/prettydiff.coffee |
Inherits: | Beautifier |
Variables Summary
- name =
-
"Pretty Diff"
- link =
-
"https://github.com/prettydiff/prettydiff"
- options =
-
{ /* Apply these options first / globally, for all languages */ _: { inchar: [ "indent_with_tabs", "indent_char", function(indent_with_tabs, indent_char) { if (indent_with_tabs === true) { return "\t"; } else { return indent_char; } } ], insize: [ "indent_with_tabs", "indent_size", function(indent_with_tabs, indent_size) { if (indent_with_tabs === true) { return 1; } else { return indent_size; } } ], objsort: function(objsort) { return objsort || false; }, preserve: [ 'preserve_newlines', function(preserve_newlines) { if (preserve_newlines === true) { return "all"; } else { return "none"; } } ], cssinsertlines: "newline_between_rules", comments: [ "indent_comments", function(indent_comments) { if (indent_comments === false) { return "noindent"; } else { return "indent"; } } ], force: "force_indentation", quoteConvert: "convert_quotes", vertical: [ 'align_assignments', function(align_assignments) { if (align_assignments === true) { return "all"; } else { return "none"; } } ], wrap: "wrap_line_length", space: "space_after_anon_function", noleadzero: "no_lead_zero", endcomma: "end_with_comma", methodchain: [ 'break_chained_methods', function(break_chained_methods) { if (break_chained_methods === true) { return false; } else { return true; } } ], ternaryline: "preserve_ternary_lines", bracepadding: "space_in_paren" }, /* Apply language-specific options */ CSV: true, Coldfusion: true, ERB: true, EJS: true, HTML: true, Handlebars: true, Mustache: true, Nunjucks: true, XML: true, SVG: true, Spacebars: true, JSX: true, JavaScript: true, CSS: true, SCSS: true, JSON: true, TSS: true, Twig: true, LESS: true, Swig: true, "UX Markup": true, Visualforce: true, "Riot.js": true, XTemplate: true, "Golang Template": true }
Variable inherited from Beautifier
Promise name options executables _exe languages beautify logger
Instance Method Summary
Inherited Method Summary
Methods inherited from
Beautifier
#isPreInstalled #loadExecutables #exe #deprecate #deprecateOptionForExecutable #tempFile #readFile #findFile #getDefaultLineEnding #which #run #setupLogger
Instance Method Details
#
(void)
beautify(text, language, options)