2016-03-03 17:24:13 -07:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset='UTF-8'>
|
|
|
|
<title>Atom-Beautify Documentation</title>
|
|
|
|
<script src='../javascript/application.js'></script>
|
|
|
|
<script src='../javascript/search.js'></script>
|
|
|
|
<link rel='stylesheet' href='../stylesheets/application.css' type='text/css'>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id='base' data-path='../'></div>
|
|
|
|
<div id='header'>
|
|
|
|
<div id='menu'>
|
|
|
|
<a href='../extra/README.md.html' title='Atom-Beautify'>
|
|
|
|
Atom-Beautify
|
|
|
|
</a>
|
|
|
|
»
|
|
|
|
<a href='../alphabetical_index.html' title='Index'>
|
|
|
|
Index
|
|
|
|
</a>
|
|
|
|
»
|
|
|
|
<span class='title'>PrettyDiff</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id='content'>
|
|
|
|
<h1>
|
|
|
|
Class:
|
|
|
|
PrettyDiff
|
|
|
|
</h1>
|
|
|
|
<table class='box'>
|
|
|
|
<tr>
|
|
|
|
<td>Defined in:</td>
|
|
|
|
<td>src/beautifiers/prettydiff.coffee</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Inherits:</td>
|
|
|
|
<td>
|
|
|
|
<a href='../class/Beautifier.html'>Beautifier</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<h2>Variables Summary</h2>
|
|
|
|
<dl class='constants'>
|
|
|
|
<dt id='name-variable'>
|
|
|
|
name
|
|
|
|
=
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
<pre><code class='coffeescript'>"Pretty Diff"</code></pre>
|
|
|
|
|
2016-07-04 20:58:48 -06:00
|
|
|
</dd>
|
|
|
|
<dt id='link-variable'>
|
|
|
|
link
|
|
|
|
=
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
<pre><code class='coffeescript'>"https://github.com/prettydiff/prettydiff"</code></pre>
|
|
|
|
|
2016-03-03 17:24:13 -07:00
|
|
|
</dd>
|
|
|
|
<dt id='options-variable'>
|
|
|
|
options
|
|
|
|
=
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
<pre><code class='coffeescript'>{
|
|
|
|
|
|
|
|
/*
|
|
|
|
Apply these options first / globally, for all languages
|
|
|
|
*/
|
|
|
|
_: {
|
2016-07-04 20:58:48 -06:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2016-03-03 17:24:13 -07:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2016-09-23 10:37:44 -06:00
|
|
|
ternaryline: "preserve_ternary_lines",
|
|
|
|
bracepadding: "space_in_paren"
|
2016-03-03 17:24:13 -07:00
|
|
|
},
|
|
|
|
|
|
|
|
/*
|
|
|
|
Apply language-specific options
|
|
|
|
*/
|
|
|
|
CSV: true,
|
|
|
|
Coldfusion: true,
|
|
|
|
ERB: true,
|
|
|
|
EJS: true,
|
|
|
|
HTML: true,
|
2016-07-04 20:58:48 -06:00
|
|
|
Handlebars: true,
|
2018-03-01 21:11:16 -07:00
|
|
|
Mustache: true,
|
2016-09-11 15:48:16 -06:00
|
|
|
Nunjucks: true,
|
2016-03-03 17:24:13 -07:00
|
|
|
XML: true,
|
|
|
|
SVG: true,
|
|
|
|
Spacebars: true,
|
|
|
|
JSX: true,
|
|
|
|
JavaScript: true,
|
|
|
|
CSS: true,
|
|
|
|
SCSS: true,
|
|
|
|
JSON: true,
|
|
|
|
TSS: true,
|
|
|
|
Twig: true,
|
|
|
|
LESS: true,
|
|
|
|
Swig: true,
|
2016-09-23 10:37:44 -06:00
|
|
|
"UX Markup": true,
|
2016-03-03 17:24:13 -07:00
|
|
|
Visualforce: true,
|
2016-07-04 20:58:48 -06:00
|
|
|
"Riot.js": true,
|
2018-03-01 21:11:16 -07:00
|
|
|
XTemplate: true,
|
|
|
|
"Golang Template": true
|
2016-03-03 17:24:13 -07:00
|
|
|
}</code></pre>
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
<h3 class='inherited'>
|
|
|
|
Variable inherited from
|
|
|
|
<a href='../class/Beautifier.html'>Beautifier</a>
|
|
|
|
</h3>
|
|
|
|
<p class='inherited'>
|
|
|
|
<a href='../class/Beautifier.html#Promise-variable'>Promise</a>
|
|
|
|
<a href='../class/Beautifier.html#name-variable'>name</a>
|
|
|
|
<a href='../class/Beautifier.html#options-variable'>options</a>
|
2018-03-01 21:11:16 -07:00
|
|
|
<a href='../class/Beautifier.html#executables-variable'>executables</a>
|
|
|
|
<a href='../class/Beautifier.html#_exe-variable'>_exe</a>
|
2016-03-03 17:24:13 -07:00
|
|
|
<a href='../class/Beautifier.html#languages-variable'>languages</a>
|
|
|
|
<a href='../class/Beautifier.html#beautify-variable'>beautify</a>
|
|
|
|
<a href='../class/Beautifier.html#logger-variable'>logger</a>
|
|
|
|
</p>
|
|
|
|
<h2>Instance Method Summary</h2>
|
|
|
|
<ul class='summary'>
|
|
|
|
<li>
|
|
|
|
<span class='signature'>
|
|
|
|
<a href='#beautify-dynamic'>
|
|
|
|
#
|
|
|
|
(void)
|
|
|
|
<b>beautify</b><span>(text, language, options)</span>
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
<span class='desc'>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<h2>
|
|
|
|
<small>Inherited Method Summary</small>
|
|
|
|
<h3 class='inherited'>
|
|
|
|
Methods inherited from
|
|
|
|
<a href='../class/Beautifier.html'>Beautifier</a>
|
|
|
|
</h3>
|
|
|
|
<p class='inherited'>
|
2018-03-01 21:11:16 -07:00
|
|
|
<a href='../class/Beautifier.html#isPreInstalled-dynamic'>#isPreInstalled</a>
|
|
|
|
<a href='../class/Beautifier.html#loadExecutables-dynamic'>#loadExecutables</a>
|
|
|
|
<a href='../class/Beautifier.html#exe-dynamic'>#exe</a>
|
2016-03-03 17:24:13 -07:00
|
|
|
<a href='../class/Beautifier.html#deprecate-dynamic'>#deprecate</a>
|
2018-03-01 21:11:16 -07:00
|
|
|
<a href='../class/Beautifier.html#deprecateOptionForExecutable-dynamic'>#deprecateOptionForExecutable</a>
|
2016-03-03 17:24:13 -07:00
|
|
|
<a href='../class/Beautifier.html#tempFile-dynamic'>#tempFile</a>
|
|
|
|
<a href='../class/Beautifier.html#readFile-dynamic'>#readFile</a>
|
2016-07-04 20:58:48 -06:00
|
|
|
<a href='../class/Beautifier.html#findFile-dynamic'>#findFile</a>
|
2018-03-01 21:11:16 -07:00
|
|
|
<a href='../class/Beautifier.html#getDefaultLineEnding-dynamic'>#getDefaultLineEnding</a>
|
2016-03-03 17:24:13 -07:00
|
|
|
<a href='../class/Beautifier.html#which-dynamic'>#which</a>
|
|
|
|
<a href='../class/Beautifier.html#run-dynamic'>#run</a>
|
|
|
|
<a href='../class/Beautifier.html#setupLogger-dynamic'>#setupLogger</a>
|
|
|
|
</p>
|
|
|
|
</h2>
|
|
|
|
<h2>Instance Method Details</h2>
|
|
|
|
<div class='methods'>
|
|
|
|
<div class='method_details'>
|
|
|
|
<p class='signature' id='beautify-dynamic'>
|
|
|
|
#
|
|
|
|
(void)
|
|
|
|
<b>beautify</b><span>(text, language, options)</span>
|
|
|
|
<br>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id='footer'>
|
|
|
|
By
|
|
|
|
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
|
|
|
|
Codo
|
|
|
|
</a>
|
2016-09-11 15:48:16 -06:00
|
|
|
2.1.2
|
2016-03-03 17:24:13 -07:00
|
|
|
✲
|
|
|
|
Press H to see the keyboard shortcuts
|
|
|
|
✲
|
|
|
|
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
|
|
|
|
✲
|
|
|
|
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
|
|
|
|
</div>
|
|
|
|
<iframe id='search_frame'></iframe>
|
|
|
|
<div id='fuzzySearch'>
|
|
|
|
<input type='text'>
|
|
|
|
<ol></ol>
|
|
|
|
</div>
|
|
|
|
<div id='help'>
|
|
|
|
<p>
|
|
|
|
Quickly fuzzy find classes, mixins, methods, file:
|
|
|
|
</p>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<span>T</span>
|
|
|
|
Open fuzzy finder dialog
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<p>
|
|
|
|
Control the navigation frame:
|
|
|
|
</p>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<span>L</span>
|
|
|
|
Toggle list view
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<span>C</span>
|
|
|
|
Show class list
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<span>I</span>
|
|
|
|
Show mixin list
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<span>F</span>
|
|
|
|
Show file list
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<span>M</span>
|
|
|
|
Show method list
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<span>E</span>
|
|
|
|
Show extras list
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<p>
|
|
|
|
You can focus and blur the search input:
|
|
|
|
</p>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<span>S</span>
|
|
|
|
Focus search input
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<span>Esc</span>
|
|
|
|
Blur search input
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|