~keith-hughitt/helioviewer.org/helioviewer-wiki

« back to all changes in this revision

Viewing changes to beautifierPackage/HFile/HFile_jg_mac.php

  • Committer: Keith Hughitt
  • Date: 2010-10-18 16:47:20 UTC
  • Revision ID: keith.hughitt@nasa.gov-20101018164720-2x5u122q66dl12dk
BackupĀ 2010/10/18

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
global $BEAUT_PATH;
 
3
if (!isset ($BEAUT_PATH)) return;
 
4
require_once("$BEAUT_PATH/Beautifier/HFile.php");
 
5
  class HFile_jg_mac extends HFile{
 
6
   function HFile_jg_mac(){
 
7
     $this->HFile();    
 
8
/*************************************/
 
9
// Beautifier Highlighting Configuration File 
 
10
// 
 
11
/*************************************/
 
12
// Flags
 
13
 
 
14
$this->nocase                   = "0";
 
15
$this->notrim                   = "0";
 
16
$this->perl                     = "0";
 
17
 
 
18
// Colours
 
19
 
 
20
$this->colours          = array("");
 
21
$this->quotecolour              = "blue";
 
22
$this->blockcommentcolour       = "green";
 
23
$this->linecommentcolour        = "green";
 
24
 
 
25
// Indent Strings
 
26
 
 
27
$this->indent                   = array();
 
28
$this->unindent                 = array();
 
29
 
 
30
// String characters and delimiters
 
31
 
 
32
$this->stringchars              = array();
 
33
$this->delimiters               = array();
 
34
$this->escchar                  = "";
 
35
 
 
36
// Comment settings
 
37
 
 
38
$this->linecommenton            = array("");
 
39
$this->blockcommenton           = array("");
 
40
$this->blockcommentoff          = array("");
 
41
 
 
42
// Keywords (keyword mapping to colour number)
 
43
 
 
44
$this->keywords                 = array(
 
45
                        "This" => "", 
 
46
                        "document" => "", 
 
47
                        "describes" => "", 
 
48
                        "the" => "", 
 
49
                        "UltraEdit" => "", 
 
50
                        "macros" => "", 
 
51
                        "contained" => "", 
 
52
                        "in" => "", 
 
53
                        "file" => "", 
 
54
                        "JG_Mac10.mac." => "", 
 
55
                        "The" => "", 
 
56
                        "were" => "", 
 
57
                        "developed" => "", 
 
58
                        "under" => "", 
 
59
                        "version" => "", 
 
60
                        "5.21." => "", 
 
61
                        "macro" => "", 
 
62
                        "library" => "", 
 
63
                        "can" => "", 
 
64
                        "be" => "", 
 
65
                        "loaded" => "", 
 
66
                        "by" => "", 
 
67
                        "using" => "", 
 
68
                        "Macro->Load" => "", 
 
69
                        "or" => "", 
 
70
                        "and" => "", 
 
71
                        "Append" => "", 
 
72
                        "to" => "", 
 
73
                        "Existing" => "", 
 
74
                        "menu" => "", 
 
75
                        "options" => "", 
 
76
                        "UltraEdit." => "", 
 
77
                        "default" => "", 
 
78
                        "hot" => "", 
 
79
                        "key" => "", 
 
80
                        "assignments" => "", 
 
81
                        "are" => "", 
 
82
                        "provided" => "", 
 
83
                        "parentheses" => "", 
 
84
                        "easily" => "", 
 
85
                        "changed" => "", 
 
86
                        "Macro->Delete" => "", 
 
87
                        "Macro/Modify" => "", 
 
88
                        "Hot" => "", 
 
89
                        "Key" => "", 
 
90
                        "option." => "", 
 
91
                        "These" => "", 
 
92
                        "strictly" => "", 
 
93
                        "as" => "", 
 
94
                        "an" => "", 
 
95
                        "educational" => "", 
 
96
                        "exercise" => "", 
 
97
                        "no" => "", 
 
98
                        "warranty" => "", 
 
99
                        "is" => "", 
 
100
                        "with" => "", 
 
101
                        "respect" => "", 
 
102
                        "their" => "", 
 
103
                        "usability" => "", 
 
104
                        "integrity" => "", 
 
105
                        "(i.e.," => "", 
 
106
                        "use" => "", 
 
107
                        "at" => "", 
 
108
                        "your" => "", 
 
109
                        "own" => "", 
 
110
                        "risk!)." => "", 
 
111
                        "Any" => "", 
 
112
                        "problems," => "", 
 
113
                        "comments," => "", 
 
114
                        "suggestions" => "", 
 
115
                        "welcome" => "", 
 
116
                        "e-mailed" => "", 
 
117
                        "john.goodman@qwest.net." => "", 
 
118
                        "Enjoy..." => "", 
 
119
                        "John" => "", 
 
120
                        "D." => "", 
 
121
                        "Goodman" => "", 
 
122
                        "JoinLines" => "", 
 
123
                        "(F8)" => "", 
 
124
                        "joins" => "", 
 
125
                        "line" => "", 
 
126
                        "following" => "", 
 
127
                        "current" => "", 
 
128
                        "end" => "", 
 
129
                        "of" => "", 
 
130
                        "a" => "", 
 
131
                        "single" => "", 
 
132
                        "space" => "", 
 
133
                        "between" => "", 
 
134
                        "them." => "", 
 
135
                        "PosFirstNonWhite" => "", 
 
136
                        "(F7)" => "", 
 
137
                        "moves" => "", 
 
138
                        "cursor" => "", 
 
139
                        "first" => "", 
 
140
                        "non-whitespace" => "", 
 
141
                        "(non-space" => "", 
 
142
                        "-tab)" => "", 
 
143
                        "character" => "", 
 
144
                        "on" => "", 
 
145
                        "line." => "", 
 
146
                        "Note:" => "", 
 
147
                        "What" => "", 
 
148
                        "I" => "", 
 
149
                        "really" => "", 
 
150
                        "wanted" => "", 
 
151
                        "do" => "", 
 
152
                        "(and" => "", 
 
153
                        "will" => "", 
 
154
                        "keep" => "", 
 
155
                        "working" => "", 
 
156
                        "on)" => "", 
 
157
                        "was" => "", 
 
158
                        "develop" => "", 
 
159
                        "\"intelligent\"" => "", 
 
160
                        "Home" => "", 
 
161
                        "that" => "", 
 
162
                        "would" => "", 
 
163
                        "work" => "", 
 
164
                        "follows:" => "", 
 
165
                        "if" => "", 
 
166
                        "column" => "", 
 
167
                        "1" => "", 
 
168
                        "move" => "", 
 
169
                        "else" => "", 
 
170
                        "Some" => "", 
 
171
                        "people" => "", 
 
172
                        "prefer:" => "", 
 
173
                        "LineAlignPrev" => "", 
 
174
                        "(Ctrl+F7)" => "", 
 
175
                        "aligns" => "", 
 
176
                        "beginning" => "", 
 
177
                        "above" => "", 
 
178
                        "it." => "", 
 
179
                        "might" => "", 
 
180
                        "prefer" => "", 
 
181
                        "add" => "", 
 
182
                        "DOWN" => "", 
 
183
                        "ARROW" => "", 
 
184
                        "command" => "", 
 
185
                        "macro." => "", 
 
186
                        "allow" => "", 
 
187
                        "you" => "", 
 
188
                        "align" => "", 
 
189
                        "series" => "", 
 
190
                        "lines" => "", 
 
191
                        "repeatedly" => "", 
 
192
                        "hitting" => "", 
 
193
                        "key." => "", 
 
194
                        "LineAlignCursor" => "", 
 
195
                        "(Ctrl+F8)" => "", 
 
196
                        "position." => "", 
 
197
                        "For" => "", 
 
198
                        "example," => "", 
 
199
                        "20," => "", 
 
200
                        "shifted" => "", 
 
201
                        "begin" => "", 
 
202
                        "20." => "", 
 
203
                        "(best" => "", 
 
204
                        "used" => "", 
 
205
                        "Allow" => "", 
 
206
                        "Positioning" => "", 
 
207
                        "Beyond" => "", 
 
208
                        "Line" => "", 
 
209
                        "End" => "", 
 
210
                        "option" => "", 
 
211
                        "set" => "", 
 
212
                        "on)." => "", 
 
213
                        "LineRight1" => "", 
 
214
                        "(Shift+F8)" => "", 
 
215
                        "shifts" => "", 
 
216
                        "right" => "", 
 
217
                        "one" => "", 
 
218
                        "(by" => "", 
 
219
                        "adding" => "", 
 
220
                        "1)." => "", 
 
221
                        "LineLeft1" => "", 
 
222
                        "(Shift+F7)" => "", 
 
223
                        "left" => "", 
 
224
                        "deleting" => "", 
 
225
                        "CmmtThisLine" => "", 
 
226
                        "(Alt+F7)" => "", 
 
227
                        "\"comments-out\"" => "", 
 
228
                        "in-line" => "", 
 
229
                        "comment" => "", 
 
230
                        "string" => "", 
 
231
                        "(\"//" => "", 
 
232
                        "\"" => "", 
 
233
                        "default)" => "", 
 
234
                        "Indentation" => "", 
 
235
                        "preserved." => "", 
 
236
                        "example:" => "", 
 
237
                        "before" => "", 
 
238
                        "invoking" => "", 
 
239
                        "macro:" => "", 
 
240
                        "........GrandTotal" => "", 
 
241
                        "+=" => "", 
 
242
                        "SubTotal" => "", 
 
243
                        "after" => "", 
 
244
                        "........//" => "", 
 
245
                        "GrandTotal" => "", 
 
246
                        "CmmtAbove" => "", 
 
247
                        "(Alt+F8)" => "", 
 
248
                        "adds" => "", 
 
249
                        "blank" => "", 
 
250
                        "facilitate" => "", 
 
251
                        "encourage!)" => "", 
 
252
                        "writing" => "", 
 
253
                        "description" => "", 
 
254
                        "what" => "", 
 
255
                        "does." => "", 
 
256
                        "aligned" => "", 
 
257
                        "original" => "", 
 
258
                        "positioned" => "", 
 
259
                        "just" => "", 
 
260
                        "string." => "", 
 
261
                        "Lines" => "", 
 
262
                        "(cursor" => "", 
 
263
                        "position" => "", 
 
264
                        "=" => "", 
 
265
                        "^):" => "", 
 
266
                        "^" => "", 
 
267
                        "RemLeadingWhite" => "", 
 
268
                        "(Ctrl+Shift+F7)" => "", 
 
269
                        "deletes" => "", 
 
270
                        "leading" => "", 
 
271
                        "whitespace" => "", 
 
272
                        "characters" => "", 
 
273
                        "(spaces" => "", 
 
274
                        "tabs)" => "", 
 
275
                        "from" => "", 
 
276
                        "RemTrailingWhite" => "", 
 
277
                        "(Ctrl+Shift+F8)" => "", 
 
278
                        "trailing" => "");
 
279
 
 
280
// Special extensions
 
281
 
 
282
// Each category can specify a PHP function that returns an altered
 
283
// version of the keyword.
 
284
        
 
285
        
 
286
 
 
287
$this->linkscripts      = array(
 
288
                        "" => "donothing");
 
289
}
 
290
 
 
291
 
 
292
function donothing($keywordin)
 
293
{
 
294
        return $keywordin;
 
295
}
 
296
 
 
297
}?>