ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
HFile_bkshell.php
Go to the documentation of this file.
1<?php
2$BEAUT_PATH = realpath(".")."/Services/COPage/syntax_highlight/php";
3if (!isset ($BEAUT_PATH)) return;
4require_once("$BEAUT_PATH/Beautifier/HFile.php");
5 class HFile_bkshell extends HFile{
6 function HFile_bkshell(){
7 $this->HFile();
8/*************************************/
9// Beautifier Highlighting Configuration File
10// Bourne & Korn Shell
11/*************************************/
12// Flags
13
14$this->nocase = "0";
15$this->notrim = "0";
16$this->perl = "0";
17
18// Colours
19
20$this->colours = array("blue", "purple", "gray", "brown", "brown", "purple", "gray");
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 "bg" => "1",
46 "break" => "1",
47 "cd" => "1",
48 "continue" => "1",
49 "echo" => "1",
50 "eval" => "1",
51 "exec" => "1",
52 "exit" => "1",
53 "export" => "1",
54 "fg" => "1",
55 "function" => "1",
56 "getopts" => "1",
57 "hash" => "1",
58 "jobs" => "1",
59 "kill" => "1",
60 "newgrp" => "1",
61 "pwd" => "1",
62 "read" => "1",
63 "readonly" => "1",
64 "return" => "1",
65 "select" => "1",
66 "set" => "1",
67 "shift" => "1",
68 "stop" => "1",
69 "stty" => "1",
70 "suspend" => "1",
71 "test" => "1",
72 "times" => "1",
73 "trap" => "1",
74 "type" => "1",
75 "ulimit" => "1",
76 "umask" => "1",
77 "unset" => "1",
78 "wait" => "1",
79 "CDPATH" => "2",
80 "EDITOR" => "2",
81 "HOME" => "2",
82 "IFS" => "2",
83 "LANG" => "2",
84 "MAIL" => "2",
85 "MAILCHECK" => "2",
86 "MAILPATH" => "2",
87 "OLDPWD" => "2",
88 "PATH" => "2",
89 "PPID" => "2",
90 "PS1" => "2",
91 "PS2" => "2",
92 "REPLY" => "2",
93 "SHACCT" => "2",
94 "SHELL" => "2",
95 "TERM" => "2",
96 "case" => "3",
97 "do" => "3",
98 "done" => "3",
99 "elif" => "3",
100 "else" => "3",
101 "esac" => "3",
102 "fi" => "3",
103 "for" => "3",
104 "if" => "3",
105 "then" => "3",
106 "while" => "3",
107 "+" => "4",
108 "-" => "4",
109 "=" => "4",
110 "//" => "4",
111 "/" => "4",
112 "%" => "4",
113 "&" => "4",
114 "^" => "4",
115 "!" => "4",
116 "|" => "4",
117 ">>" => "8",
118 ">&" => "8",
119 "<<" => "8",
120 "<&" => "8",
121 "<" => "8",
122 ">" => "8",
123 "$#" => "6",
124 "$-" => "6",
125 "$?" => "6",
126 "$!" => "6",
127 "$*" => "6",
128 "$@" => "6",
129 "$$" => "6",
130 "$0" => "6",
131 "$1" => "6",
132 "$2" => "6",
133 "$3" => "6",
134 "$4" => "6",
135 "$5" => "6",
136 "$6" => "6",
137 "$7" => "6",
138 "$8" => "6",
139 "$9" => "6",
140 "-a" => "7",
141 "-o" => "7",
142 "-eq" => "7",
143 "-ne" => "7",
144 "-le" => "7",
145 "-lt" => "7",
146 "-ge" => "7",
147 "-gt" => "7",
148 "-b" => "7",
149 "-c" => "7",
150 "-d" => "7",
151 "-f" => "7",
152 "-g" => "7",
153 "-k" => "7",
154 "-l" => "7",
155 "-p" => "7",
156 "-r" => "7",
157 "-s" => "7",
158 "-S" => "7",
159 "-t" => "7",
160 "-u" => "7",
161 "-w" => "7",
162 "-x" => "7",
163 "-n" => "7",
164 "-z" => "7");
165
166// Special extensions
167
168// Each category can specify a PHP function that returns an altered
169// version of the keyword.
170
171
172
173$this->linkscripts = array(
174 "1" => "donothing",
175 "2" => "donothing",
176 "3" => "donothing",
177 "4" => "donothing",
178 "8" => "donothing",
179 "6" => "donothing",
180 "7" => "donothing");
181}
182
183
184function donothing($keywordin)
185{
186 return $keywordin;
187}
188
189}?>
$BEAUT_PATH
donothing($keywordin)