ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
HFile_map.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_map extends HFile{
6 function HFile_map(){
7 $this->HFile();
8/*************************************/
9// Beautifier Highlighting Configuration File
10// MAP File
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", "blue", "purple", "gray", "brown");
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 "BIT" => "1",
46 "BTW" => "1",
47 "BYT" => "1",
48 "CODE" => "1",
49 "D16" => "1",
50 "DATA" => "1",
51 "DT3" => "1",
52 "DT4" => "1",
53 "DT8" => "1",
54 "FAR" => "1",
55 "HDAT" => "1",
56 "INT" => "1",
57 "LDAT" => "1",
58 "NEA" => "1",
59 "PDAT" => "1",
60 "REG" => "1",
61 "TSK" => "1",
62 "WOR" => "1",
63 "BITA" => "2",
64 "BYTE" => "2",
65 "DWORD" => "2",
66 "IRAM" => "2",
67 "PAGE" => "2",
68 "PECA" => "2",
69 "SEGM" => "2",
70 "WORD" => "2",
71 "AT" => "3",
72 "COMM" => "3",
73 "GLOB" => "3",
74 "GUSK" => "3",
75 "PRIV" => "3",
76 "PUBL" => "3",
77 "SSTK" => "3",
78 "USTK" => "3",
79 "ABS" => "4",
80 "RAM" => "4",
81 "ROM" => "5",
82 "Reserved" => "5",
83 "?FI" => "6",
84 "?LI" => "6",
85 "?SY" => "6",
86 "EXT" => "6",
87 "GLB" => "6",
88 "LOC" => "6",
89 "PUB" => "6",
90 "CBITS" => "7",
91 "CBITWORDS" => "7",
92 "CFAR" => "7",
93 "CFARROM" => "7",
94 "CHUGE" => "7",
95 "CHUGEROM" => "7",
96 "CINITROM" => "7",
97 "CIRAM" => "7",
98 "CNEAR" => "7",
99 "CNEAR2" => "7",
100 "CPROGRAM" => "7",
101 "CROM" => "7",
102 "CSHUGE" => "7",
103 "CSHUGEROM" => "7",
104 "CSYSTEM" => "7",
105 "CUSTACK" => "7",
106 "C_INIT" => "7",
107 "CLIBRARY" => "8",
108 "RTLIBRARY" => "8",
109 "SHAREDCLIB" => "8",
110 "SHAREDRTLIB" => "8");
111
112// Special extensions
113
114// Each category can specify a PHP function that returns an altered
115// version of the keyword.
116
117
118
119$this->linkscripts = array(
120 "1" => "donothing",
121 "2" => "donothing",
122 "3" => "donothing",
123 "4" => "donothing",
124 "5" => "donothing",
125 "6" => "donothing",
126 "7" => "donothing",
127 "8" => "donothing");
128}
129
130
131function donothing($keywordin)
132{
133 return $keywordin;
134}
135
136}?>
$BEAUT_PATH
Definition: HFile_map.php:2
donothing($keywordin)
Definition: HFile_map.php:131
HFile_map()
Definition: HFile_map.php:6