ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_realpix.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_realpix extends HFile{
6  function HFile_realpix(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // RealPix
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  "<a" => "1",
46  "</a>" => "1",
47  "<b>" => "1",
48  "</b>" => "1",
49  "<br/>" => "1",
50  "<center>" => "1",
51  "</center>" => "1",
52  "<clear" => "1",
53  "<crossfade" => "1",
54  "<font" => "1",
55  "</font>" => "1",
56  "<fadein" => "1",
57  "<fadeout" => "1",
58  "<fill" => "1",
59  "<head" => "1",
60  "<hr" => "1",
61  "<i>" => "1",
62  "</i>" => "1",
63  "<image" => "1",
64  "<imfl>" => "1",
65  "</imfl>" => "1",
66  "<li>" => "1",
67  "</li>" => "1",
68  "<ol>" => "1",
69  "</ol>" => "1",
70  "<p>" => "1",
71  "</p>" => "1",
72  "<pos" => "1",
73  "<pre>" => "1",
74  "</pre>" => "1",
75  "<required>" => "1",
76  "</required>" => "1",
77  "<time" => "1",
78  "<tl>" => "1",
79  "</tl>" => "1",
80  "<tu>" => "1",
81  "</tu>" => "1",
82  "<u>" => "1",
83  "</u>" => "1",
84  "<ul>" => "1",
85  "</ul>" => "1",
86  "<viewchange" => "1",
87  "<window>" => "1",
88  "</window>" => "1",
89  "<wipe>" => "1",
90  "//" => "1",
91  "/>" => "1",
92  "aspect=" => "2",
93  "author=" => "2",
94  "begin=" => "2",
95  "bgcolor=" => "2",
96  "bitrate=" => "2",
97  "charset=" => "2",
98  "color=" => "2",
99  "copyright=" => "2",
100  "crawlrate=" => "2",
101  "direction=" => "2",
102  "dsth=" => "2",
103  "dstw=" => "2",
104  "dstx=" => "2",
105  "dsty=" => "2",
106  "duration=" => "2",
107  "end=" => "2",
108  "face=" => "2",
109  "handle=" => "2",
110  "height=" => "2",
111  "href=" => "2",
112  "link=" => "2",
113  "loop=" => "2",
114  "maxfps=" => "2",
115  "name=" => "2",
116  "preroll=" => "2",
117  "scrollrate=" => "2",
118  "size=" => "2",
119  "srch=" => "2",
120  "srcw=" => "2",
121  "srcx=" => "2",
122  "srcy=" => "2",
123  "start=" => "2",
124  "target=" => "2",
125  "timeformat=" => "2",
126  "title=" => "2",
127  "type=" => "2",
128  "underline_hyperlinks=" => "2",
129  "url=" => "2",
130  "width=" => "2",
131  "wordwrap=" => "2",
132  "x=" => "2",
133  "y=" => "2",
134  "=" => "2");
135 
136 // Special extensions
137 
138 // Each category can specify a PHP function that returns an altered
139 // version of the keyword.
140 
141 
142 
143 $this->linkscripts = array(
144  "1" => "donothing",
145  "2" => "donothing");
146 }
147 
148 
149 function donothing($keywordin)
150 {
151  return $keywordin;
152 }
153 
154 }?>