forked from prettydiff/prettydiff
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
190 lines (144 loc) · 6.48 KB
/
README
File metadata and controls
190 lines (144 loc) · 6.48 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
Pretty Diff
===========
Node.js
-------
At the end of the Pretty Diff function include this code:
if (typeof exports !== "string") {
exports.api = function(x) {
"use strict";
return prettydiff(x);
};
}
In your Node.js script include Pretty Diff with this code:
var prettydiff = require("prettydiff");
WSH
---
Create a WSH script file using XML syntax and with a file extension of
"WSF". This file must have a tag for each supported argument, must be
capable of reading from a file, and retrieving dependencies. An example
for the markup_beauty.js script can be obtained at:
http://prettydiff.com/wsh.wsf
That example file would be executed using the following on CLI:
> wsh.wsf /source:"my_source_file" /html:true /insize:8
Inventory:
----------
prettydiff.js - primary application for client and server processing
api.js - server side API processor (No long maintained)
pd.js - DOM interpreter and HTML tool manipulator
charDecoder.js - component
cleanCSS.js - component
csvbeauty.js - component
csvmin.js - component
diffview.css - component
diffview.js - component
fulljsmin.js - component
js-beautify.js - component
markup_beauty.js - component
markupmin.js - component
* The component files are provided for access to individual functions
independent of the Pretty Diff application. The component code is
already included in prettydiff.js, so it is not needed in addition to
prettydiff.js. The only files not included with prettydiff.js are
diffview.css, pd.js, and api.js.
* For usage documentation please visit
http://prettydiff.com/documentation.php
* For code documentation please visit the respective component files.
The core files: api.js, pd.js, and prettydiff.js include no code
documentation.
License:
--------
@source: http://prettydiff.com/documentation.php
@licstart The following is the entire license notice for the
JavaScript code in this page.
Created by Austin Cheney originally on 3 Mar 2009.
This code may not be used or redistributed unless the following
conditions are met:
There is no licensing associated with diffview.css. Please use,
redistribute, and alter to your content. However, diffview.css
provided from Pretty Diff is different from and not aligned with
diffview.css originally from Snowtide Informatics.
* The use of diffview.js and prettydiff.js must contain the following
copyright:
Copyright (c) 2007, Snowtide Informatics Systems, Inc.
All rights reserved.
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the
distribution.
* Neither the name of the Snowtide Informatics Systems nor the names
of its contributors may be used to endorse or promote products
derived from this software without specific prior written
permission.
- used as diffview function
<http://prettydiff.com/diffview.js>
* The author of fulljsmin.js and date of creation must be stated as:
Franck Marcia - 31 Aug 2006
- used as jsmin function:
<http://prettydiff.com/fulljsmin.js>
* The fulljsmin.js is used with permission from the author of jsminc.c
and such must be stated as:
Copyright (c) 2002 Douglas Crockford (www.crockford.com)
* The author of js-beautify.js must be stated as:
Written by Einars Lielmanis, <einars@gmail.com>
http://elfz.laacz.lv/beautify/
Originally converted to javascript by Vital, <vital76@gmail.com>
http://my.opera.com/Vital/blog/2007/11/21/
javascript-beautify-on-javascript-translated
- used as js_beautify function
<http://prettydiff.com/js-beautify.js>
* cleanCSS.js is originally written by Anthony Lieuallen
http://tools.arantius.com/tabifier
- used as cleanCSS function
<http://prettydiff.com/cleanCSS.js>
* charDecoder.js is written by Austin Cheney. Use of this function
requires that credit be given to Austin Cheney.
http://prettydiff.com/
- used as charDecoder function
<http://prettydiff.com/charDecoder.js>
* csvbeauty.js is written by Austin Cheney. Use of this function
requires that credit be given to Austin Cheney.
http://prettydiff.com/
- used as csvbeauty function
<http://prettydiff.com/csvbeauty.js>
* csvmin.js is written by Austin Cheney. Use of this function requires
that credit be given to Austin Cheney.
http://prettydiff.com/
- used as csvmin function
<http://prettydiff.com/csvmin.js>
* markupmin.js is written by Austin Cheney. Use of this function
requires that credit be given to Austin Cheney.
http://prettydiff.com/
- used as markupmin function
<http://prettydiff.com/markupmin.js>
* markup_beauty.js is written by Austin Cheney. Use of this function
requires that credit be given to Austin Cheney.
http://prettydiff.com/
- used as markup-beauty function
<http://prettydiff.com/markup_beauty.js>
* o object literal is in the pd.js file and exists to provide a one
time and external means of access to the DOM.
-----------------------------------------------------------------------
* The code mentioned above has significantly expanded documentation in
each of the respective function's external JS file as linked from the
documentation page:
<http://prettydiff.com/documentation.php>
* The compilation of cssClean, csvbeauty, csvmin, jsmin, jsdifflib,
markup_beauty, markupmin, and js-beautify in this manner is a result of
the prettydiff() function contained in prettydiff.js. The per
character highlighting is the result of the charcomp() function also
contained in prettydiff.js. Any use or redistribution of these
functions must mention the following:
Prettydiff created by Austin Cheney originally on 3 Mar 2009.
<http://prettydiff.com/>
Contact the author at:
austin.cheney@us.army.mil
* In addition to the previously stated requirements any use of any
component, aside from directly using the full files in their entirety,
must restate the license mentioned at the top of each concerned file.
If each and all these conditions are met use and redistribution of
prettydiff and its required assets is unlimited without author
permission.
@licend The above is the entire license notice
for the JavaScript code in this page.