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" }, /* Apply language-specific options */ CSV: true, Coldfusion: true, ERB: true, EJS: true, HTML: true, Handlebars: true, XML: true, SVG: true, Spacebars: true, JSX: true, JavaScript: true, CSS: true, SCSS: true, Sass: true, JSON: true, TSS: true, Twig: true, LESS: true, Swig: true, Visualforce: true, "Riot.js": true, XTemplate: true }
Variable inherited from Beautifier
Promise name options languages beautify _envCache _envCacheDate _envCacheExpiry logger
Instance Method Summary
Inherited Method Summary
Methods inherited from
Beautifier
#deprecate #tempFile #readFile #findFile #getShellEnvironment #which #commandNotFoundError #run #spawn #setupLogger
Instance Method Details
#
(void)
beautify(text, language, options)