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

« back to all changes in this revision

Viewing changes to beautifierPackage/HFile/HFile_kixtart.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_kixtart extends HFile{
 
6
   function HFile_kixtart(){
 
7
     $this->HFile();    
 
8
/*************************************/
 
9
// Beautifier Highlighting Configuration File 
 
10
// Kixtart 3.62
 
11
/*************************************/
 
12
// Flags
 
13
 
 
14
$this->nocase                   = "1";
 
15
$this->notrim                   = "0";
 
16
$this->perl                     = "0";
 
17
 
 
18
// Colours
 
19
 
 
20
$this->colours          = array("blue", "purple");
 
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
                        "(" => "1", 
 
46
                        ")" => "1", 
 
47
                        "AT" => "1", 
 
48
                        "BEEP" => "1", 
 
49
                        "BIG" => "1", 
 
50
                        "BOX" => "1", 
 
51
                        "BREAK" => "1", 
 
52
                        "CALL" => "1", 
 
53
                        "CASE" => "1", 
 
54
                        "CD" => "1", 
 
55
                        "CLS" => "1", 
 
56
                        "COLOR" => "1", 
 
57
                        "COOKIE1" => "1", 
 
58
                        "COPY" => "1", 
 
59
                        "DEL" => "1", 
 
60
                        "DIM" => "1", 
 
61
                        "DISPLAY" => "1", 
 
62
                        "DO" => "1", 
 
63
                        "ELSE" => "1", 
 
64
                        "ENDIF" => "1", 
 
65
                        "ENDSELECT" => "1", 
 
66
                        "EXIT" => "1", 
 
67
                        "FLUSHKB" => "1", 
 
68
                        "GET" => "1", 
 
69
                        "GETS" => "1", 
 
70
                        "GLOBAL" => "1", 
 
71
                        "GO" => "1", 
 
72
                        "GOSUB" => "1", 
 
73
                        "GOTO" => "1", 
 
74
                        "IF" => "1", 
 
75
                        "LOOP" => "1", 
 
76
                        "MD" => "1", 
 
77
                        "OFF" => "1", 
 
78
                        "ON" => "1", 
 
79
                        "PASSWORD" => "1", 
 
80
                        "PLAY" => "1", 
 
81
                        "QUIT" => "1", 
 
82
                        "RETURN" => "1", 
 
83
                        "RD" => "1", 
 
84
                        "RUN" => "1", 
 
85
                        "SELECT" => "1", 
 
86
                        "SET" => "1", 
 
87
                        "SETL" => "1", 
 
88
                        "SETM" => "1", 
 
89
                        "SETTIME" => "1", 
 
90
                        "SHELL" => "1", 
 
91
                        "SLEEP" => "1", 
 
92
                        "SMALL" => "1", 
 
93
                        "UNTIL" => "1", 
 
94
                        "USE" => "1", 
 
95
                        "WHILE" => "1", 
 
96
                        "ADDKEY" => "2", 
 
97
                        "ADDPRINTERCONNECTION" => "2", 
 
98
                        "ADDPROGRAMGROUP" => "2", 
 
99
                        "ADDPROGRAMITEM" => "2", 
 
100
                        "ASC" => "2", 
 
101
                        "BACKUPEVENTLOG" => "2", 
 
102
                        "CHR" => "2", 
 
103
                        "CLEAREVENTLOG" => "2", 
 
104
                        "CLOSE" => "2", 
 
105
                        "COMPAREFILETIMES" => "2", 
 
106
                        "DECTOHEX" => "2", 
 
107
                        "DELKEY" => "2", 
 
108
                        "DELPRINTERCONNECTION" => "2", 
 
109
                        "DELPROGRAMGROUP" => "2", 
 
110
                        "DELPROGRAMITEM" => "2", 
 
111
                        "DELTREE" => "2", 
 
112
                        "DELVALUE" => "2", 
 
113
                        "DIR" => "2", 
 
114
                        "ENUMGROUP" => "2", 
 
115
                        "ENUMKEY" => "2", 
 
116
                        "ENUMLOCALGROUP" => "2", 
 
117
                        "ENUMVALUE" => "2", 
 
118
                        "EXECUTE" => "2", 
 
119
                        "EXIST" => "2", 
 
120
                        "EXISTKEY" => "2", 
 
121
                        "EXPANDENVIRONMENTVARS" => "2", 
 
122
                        "GETDISKSPACE" => "2", 
 
123
                        "GETFILEATTR" => "2", 
 
124
                        "GETFILESIZE" => "2", 
 
125
                        "GETFILETIME" => "2", 
 
126
                        "GETFILEVERSION" => "2", 
 
127
                        "INGROUP" => "2", 
 
128
                        "INSTR" => "2", 
 
129
                        "LCASE" => "2", 
 
130
                        "LEN" => "2", 
 
131
                        "LOADHIVE" => "2", 
 
132
                        "LOADKEY" => "2", 
 
133
                        "LOGEVENT" => "2", 
 
134
                        "LOGOFF" => "2", 
 
135
                        "LTRIM" => "2", 
 
136
                        "MESSAGEBOX" => "2", 
 
137
                        "OLECALLFUNC" => "2", 
 
138
                        "OLECALLPROC" => "2", 
 
139
                        "OLECREATEOBJECT" => "2", 
 
140
                        "OLEENUMOBJECT" => "2", 
 
141
                        "OLEGETOBJECT" => "2", 
 
142
                        "OLEGETPROPERTY" => "2", 
 
143
                        "OLEGETSUBOBJECT" => "2", 
 
144
                        "OLEPUTPROPERTY" => "2", 
 
145
                        "OLERELEASEOBJECT" => "2", 
 
146
                        "OPEN" => "2", 
 
147
                        "READLINE" => "2", 
 
148
                        "READPROFILESTRING" => "2", 
 
149
                        "READTYPE" => "2", 
 
150
                        "READVALUE" => "2", 
 
151
                        "REDIRECTOUTPUT" => "2", 
 
152
                        "RND" => "2", 
 
153
                        "RTRIM" => "2", 
 
154
                        "SAVEKEY" => "2", 
 
155
                        "SENDKEYS" => "2", 
 
156
                        "SENDMESSAGE" => "2", 
 
157
                        "SETACSII" => "2", 
 
158
                        "SETCONSOLE" => "2", 
 
159
                        "SETDEFAULTPRINTER" => "2", 
 
160
                        "SETFILEATTR" => "2", 
 
161
                        "SETFOCUS" => "2", 
 
162
                        "SETWALLPAPER" => "2", 
 
163
                        "SHOWPROGRAMGROUP" => "2", 
 
164
                        "SHUTDOWN" => "2", 
 
165
                        "SRND" => "2", 
 
166
                        "SUBSTR" => "2", 
 
167
                        "UCASE" => "2", 
 
168
                        "UNLOADHIVE" => "2", 
 
169
                        "VAL" => "2", 
 
170
                        "WRITELINE" => "2", 
 
171
                        "WRITEPROFILESTRING" => "2", 
 
172
                        "WRITEVALUE" => "2");
 
173
 
 
174
// Special extensions
 
175
 
 
176
// Each category can specify a PHP function that returns an altered
 
177
// version of the keyword.
 
178
        
 
179
        
 
180
 
 
181
$this->linkscripts      = array(
 
182
                        "1" => "donothing", 
 
183
                        "2" => "donothing");
 
184
}
 
185
 
 
186
 
 
187
function donothing($keywordin)
 
188
{
 
189
        return $keywordin;
 
190
}
 
191
 
 
192
}?>