ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_map.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".") . "/Services/COPage/syntax_highlight/php";
3 if (!isset($BEAUT_PATH)) {
4  return;
5 }
6 require_once("$BEAUT_PATH/Beautifier/HFile.php");
7  class HFile_map extends HFile
8  {
9  public function HFile_map()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // MAP File
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "0";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("blue", "purple", "gray", "brown", "blue", "purple", "gray", "brown");
25  $this->quotecolour = "blue";
26  $this->blockcommentcolour = "green";
27  $this->linecommentcolour = "green";
28 
29  // Indent Strings
30 
31  $this->indent = array();
32  $this->unindent = array();
33 
34  // String characters and delimiters
35 
36  $this->stringchars = array();
37  $this->delimiters = array(".", " ", ",", " ", ":");
38  $this->escchar = "";
39 
40  // Comment settings
41 
42  $this->linecommenton = array("");
43  $this->blockcommenton = array("");
44  $this->blockcommentoff = array("");
45 
46  // Keywords (keyword mapping to colour number)
47 
48  $this->keywords = array(
49  "BIT" => "1",
50  "BTW" => "1",
51  "BYT" => "1",
52  "CODE" => "1",
53  "D16" => "1",
54  "DATA" => "1",
55  "DT3" => "1",
56  "DT4" => "1",
57  "DT8" => "1",
58  "FAR" => "1",
59  "HDAT" => "1",
60  "INT" => "1",
61  "LDAT" => "1",
62  "NEA" => "1",
63  "PDAT" => "1",
64  "REG" => "1",
65  "TSK" => "1",
66  "WOR" => "1",
67  "BITA" => "2",
68  "BYTE" => "2",
69  "DWORD" => "2",
70  "IRAM" => "2",
71  "PAGE" => "2",
72  "PECA" => "2",
73  "SEGM" => "2",
74  "WORD" => "2",
75  "AT" => "3",
76  "COMM" => "3",
77  "GLOB" => "3",
78  "GUSK" => "3",
79  "PRIV" => "3",
80  "PUBL" => "3",
81  "SSTK" => "3",
82  "USTK" => "3",
83  "ABS" => "4",
84  "RAM" => "4",
85  "ROM" => "5",
86  "Reserved" => "5",
87  "?FI" => "6",
88  "?LI" => "6",
89  "?SY" => "6",
90  "EXT" => "6",
91  "GLB" => "6",
92  "LOC" => "6",
93  "PUB" => "6",
94  "CBITS" => "7",
95  "CBITWORDS" => "7",
96  "CFAR" => "7",
97  "CFARROM" => "7",
98  "CHUGE" => "7",
99  "CHUGEROM" => "7",
100  "CINITROM" => "7",
101  "CIRAM" => "7",
102  "CNEAR" => "7",
103  "CNEAR2" => "7",
104  "CPROGRAM" => "7",
105  "CROM" => "7",
106  "CSHUGE" => "7",
107  "CSHUGEROM" => "7",
108  "CSYSTEM" => "7",
109  "CUSTACK" => "7",
110  "C_INIT" => "7",
111  "CLIBRARY" => "8",
112  "RTLIBRARY" => "8",
113  "SHAREDCLIB" => "8",
114  "SHAREDRTLIB" => "8");
115 
116  // Special extensions
117 
118  // Each category can specify a PHP function that returns an altered
119  // version of the keyword.
120 
121 
122 
123  $this->linkscripts = array(
124  "1" => "donothing",
125  "2" => "donothing",
126  "3" => "donothing",
127  "4" => "donothing",
128  "5" => "donothing",
129  "6" => "donothing",
130  "7" => "donothing",
131  "8" => "donothing");
132  }
133 
134 
135  public function donothing($keywordin)
136  {
137  return $keywordin;
138  }
139  }
HFile_map()
Definition: HFile_map.php:9
donothing($keywordin)
Definition: HFile_map.php:135
Create styles array
The data for the language used.
Definition: HFile.php:21
$BEAUT_PATH
Definition: HFile_map.php:2