ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_pascal.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".")."/Services/COPage/syntax_highlight/php";
3 if (!isset ($BEAUT_PATH)) return;
4 require_once("$BEAUT_PATH/Beautifier/HFile.php");
5  class HFile_pascal extends HFile{
6  function HFile_pascal(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // Pascal
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", "gray");
21 $this->quotecolour = "blue";
22 $this->blockcommentcolour = "green";
23 $this->linecommentcolour = "green";
24 
25 // Indent Strings
26 
27 $this->indent = array("Begin");
28 $this->unindent = array("End");
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  "absolute" => "1",
46  "array" => "1",
47  "assembler" => "1",
48  "const" => "1",
49  "constructor" => "1",
50  "destructor" => "1",
51  "export" => "1",
52  "exports" => "1",
53  "external" => "1",
54  "far" => "1",
55  "file" => "1",
56  "forward" => "1",
57  "function" => "1",
58  "implementation" => "1",
59  "index" => "1",
60  "inherited" => "1",
61  "inline" => "1",
62  "interface" => "1",
63  "interrupt" => "1",
64  "library" => "1",
65  "near" => "1",
66  "nil" => "1",
67  "object" => "1",
68  "of" => "1",
69  "packed" => "1",
70  "private" => "1",
71  "procedure" => "1",
72  "program" => "1",
73  "public" => "1",
74  "record" => "1",
75  "resident" => "1",
76  "set" => "1",
77  "string" => "1",
78  "type" => "1",
79  "unit" => "1",
80  "uses" => "1",
81  "var" => "1",
82  "virtual" => "1",
83  "asm" => "2",
84  "begin" => "2",
85  "case" => "2",
86  "do" => "2",
87  "downto" => "2",
88  "else" => "2",
89  "end" => "2",
90  "for" => "2",
91  "goto" => "2",
92  "if" => "2",
93  "label" => "2",
94  "repeat" => "2",
95  "then" => "2",
96  "to" => "2",
97  "until" => "2",
98  "while" => "2",
99  "with" => "2",
100  "and" => "3",
101  "div" => "3",
102  "in" => "3",
103  "mod" => "3",
104  "not" => "3",
105  "or" => "3",
106  "shl" => "3",
107  "shr" => "3",
108  "xor" => "3",
109  "+" => "3",
110  "-" => "3",
111  "*" => "3",
112  ":" => "3",
113  "=" => "3",
114  "/" => "3",
115  ">" => "3",
116  "<" => "3",
117  "^" => "3");
118 
119 // Special extensions
120 
121 // Each category can specify a PHP function that returns an altered
122 // version of the keyword.
123 
124 
125 
126 $this->linkscripts = array(
127  "1" => "donothing",
128  "2" => "donothing",
129  "3" => "donothing");
130 }
131 
132 
133 function donothing($keywordin)
134 {
135  return $keywordin;
136 }
137 
138 }?>