-
-
Notifications
You must be signed in to change notification settings - Fork 137
Expand file tree
/
Copy pathprettydiffrc.xhtml
More file actions
115 lines (115 loc) · 7.81 KB
/
Copy pathprettydiffrc.xhtml
File metadata and controls
115 lines (115 loc) · 7.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN' 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'>
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Pretty Diff - .prettydiffrc File</title>
<link href="../css/index.css" media="all" rel="stylesheet" type="text/css"/>
<link
href="http://prettydiff.com/guide/prettydiffrc.xhtml"
rel="canonical"
type="application/xhtml+xml"/>
<link
href="http://prettydiff.com/images/favicon.ico"
rel="icon"
type="image/x-icon"/>
<link
href="http://prettydiff.com/labels.rdf"
rel="meta"
title="ICRA labels"
type="application/rdf+xml"/>
<meta content="width=device-width, initial-scale=1" name="viewport"/>
<meta content="index, follow" name="robots"/>
<meta content="Pretty Diff - Guide, .prettydiffrc file" name="DC.title"/>
<meta
content="(pics-1.1 "http://www.icra.org/pics/vocabularyv03/" l gen true for "http://prettydiff.com" r (n 0 s 0 v 0 l 0 oa 0 ob 0 oc 0 od 0 oe 0 of 0 og 0 oh 0 c 1) gen true for "http://www.prettydiff.com" r (n 0 s 0 v 0 l 0 oa 0 ob 0 oc 0 od 0 oe 0 of 0 og 0 oh 0 c 1))"
http-equiv="pics-Label"/>
<meta content="Austin Cheney" name="author"/>
<meta
content="Pretty Diff tool can minify, beautify (pretty-print), or diff between minified and beautified code. This tool can even beautify and minify HTML."
name="description"/>
<meta content="Global" name="distribution"/>
<meta content="en" http-equiv="Content-Language"/>
<meta content="application/xhtml+xml;charset=UTF-8" http-equiv="Content-Type"/>
<meta content="blendTrans(Duration=0)" http-equiv="Page-Enter"/>
<meta content="blendTrans(Duration=0)" http-equiv="Page-Exit"/>
<meta content="text/css" http-equiv="content-style-type"/>
<meta content="application/javascript" http-equiv="content-script-type"/>
<meta
content="qL8AV9yjL2-ZFGV9ey6wU3t7pTZdpD4lIetUSiNen7E"
name="google-site-verification"/>
</head>
<body class="white" id="prettydiff">
<div class="contentarea" id="page">
<section role="heading">
<h1>
<svg height="2000.000000pt" id="pdlogo" preserveAspectRatio="xMidYMid meet" version="1.0" viewBox="0 0 2000.000000 2000.000000" width="2000.000000pt" xmlns="http://www.w3.org/2000/svg">
<g fill="#999" stroke="none" transform="translate(0.000000,2000.000000) scale(0.100000,-0.100000)">
<path
d="M14871 18523 c-16 -64 -611 -2317 -946 -3588 -175 -660 -319 -1202 -320 -1204 -2 -2 -50 39 -107 91 -961 876 -2202 1358 -3498 1358 -1255 0 -2456 -451 -3409 -1279 -161 -140 -424 -408 -560 -571 -507 -607 -870 -1320 -1062 -2090 -58 -232 -386 -1479 -2309 -8759 -148 -563 -270 -1028 -270 -1033 0 -4 614 -8 1365 -8 l1364 0 10 38 c16 63 611 2316 946 3587 175 660 319 1202 320 1204 2 2 50 -39 107 -91 543 -495 1169 -862 1863 -1093 1707 -568 3581 -211 4965 946 252 210 554 524 767 796 111 143 312 445 408 613 229 406 408 854 525 1320 57 225 380 1451 2310 8759 148 563 270 1028 270 1033 0 4 -614 8 -1365 8 l-1364 0 -10 -37z m-4498 -5957 c477 -77 889 -256 1245 -542 523 -419 850 -998 954 -1689 18 -121 18 -549 0 -670 -80 -529 -279 -972 -612 -1359 -412 -480 -967 -779 -1625 -878 -121 -18 -549 -18 -670 0 -494 74 -918 255 -1283 548 -523 419 -850 998 -954 1689 -18 121 -18 549 0 670 104 691 431 1270 954 1689 365 293 828 490 1283 545 50 6 104 13 120 15 72 10 495 -3 588 -18z"/></g>
</svg>
<a href="../index.xhtml">Pretty Diff</a>
- Guide: .prettydiffrc File</h1>
<p id="dcolorScheme">
<label class="label" for="colorScheme">Color Scheme</label>
<select id="colorScheme">
<option>Canvas</option>
<option>Shadow</option>
<option selected="selected">White</option>
</select>
</p>
<p>Explore some
<a href="../samples.xhtml">samples</a>
or browse
<a href="https://github.com/prettydiff/prettydiff">Pretty Diff on GitHub</a>.</p>
</section>
<section role="main">
<h2>
<a href="../.prettydiffrc">.prettydiffrc</a>
file</h2>
<div class="segment">
<h3>Purpose of this file</h3>
<p>This file allows users to save option configurations for the Pretty Diff
tool. The file is run automatically when Pretty Diff is run as a Node.js
application using its Node interface file,
<a href="../api/node-local.js">api/node-local.js</a>.</p>
</div>
<div class="segment">
<h3>Order of operations</h3>
<p>Pretty Diff accepts options in various different ways. The first thing Pretty
Diff looks for is if options are passed directly to the application, which can
occur from another application or directly from the command line. The
.prettdiffrc file is evaluated only after externally supplied options are
evaluated. Each option has a default type and value that is applied if no other
value is supplied. Finally, Pretty Diff accepts an option comment from the
source file as the final and most dominate means of defining option values. This
order of operations allows Pretty Diff to interpret options in the
<a href="../.prettydiffrc">.prettydiffrc</a>
file conditionally in regards to certain other options.</p>
</div>
<div class="segment">
<h3>Supported formats</h3>
<p>The primary supported format is JSON. Simply supply JSON data containing the
options to change and their intended values.</p>
<p>If the file is not JSON format the Pretty Diff's Node interface will evaluate
the file as a JavaScript application using the supplied format. This is a more
complex approach, but allows users to define options conditionally. This can be
helpful if users wish to define one set of options a given language and another
set of options for a different language, mode, or other combination of features.</p>
</div>
<div class="segment">
<h3>File location</h3>
<p>Pretty Diff will attempt to search for the file in two locations. The primary
location is the current local directory of the executing application or user's
command prompt. If Pretty Diff is installed both locally and globally the local
configuration has dominance provided the command prompt is at that location.</p>
<p>If the
<a href="../.prettydiffrc">.prettydiffrc</a>
file is not available at the user's locally active directory the application's
local directory is searched.</p>
</div>
</section>
</div>
<script src="../lib/global.js" type="application/javascript"></script>
<script src="../api/dom.js" type="application/javascript"></script>
</body>
</html>