ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_realtext.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_realtext extends HFile{
6  function HFile_realtext(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // RealText
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  "<a>" => "1",
48  "<b>" => "1",
49  "</b>" => "1",
50  "<br/>" => "1",
51  "<center>" => "1",
52  "</center>" => "1",
53  "<clear/>" => "1",
54  "<font>" => "1",
55  "<font" => "1",
56  "</font>" => "1",
57  "<hr/>" => "1",
58  "<i>" => "1",
59  "</i>" => "1",
60  "<li>" => "1",
61  "</li>" => "1",
62  "<ol>" => "1",
63  "</ol>" => "1",
64  "<p>" => "1",
65  "</p>" => "1",
66  "<pos/>" => "1",
67  "<pre>" => "1",
68  "</pre>" => "1",
69  "<required>" => "1",
70  "</required>" => "1",
71  "<time" => "1",
72  "<tl>" => "1",
73  "</tl>" => "1",
74  "<tu>" => "1",
75  "</tu>" => "1",
76  "<u>" => "1",
77  "</u>" => "1",
78  "<ul>" => "1",
79  "</ul>" => "1",
80  "<window>" => "1",
81  "<window" => "1",
82  "</window>" => "1",
83  "//" => "1",
84  "/>" => "1",
85  "attribute=" => "2",
86  "begin=" => "2",
87  "bgcolor=" => "2",
88  "color=" => "2",
89  "crawlrate=" => "2",
90  "duration=" => "2",
91  "end=" => "2",
92  "height=" => "2",
93  "href=" => "2",
94  "scrollrate=" => "2",
95  "size=" => "2",
96  "target=" => "2",
97  "type=" => "2",
98  "width=" => "2",
99  "wordwrap=" => "2",
100  "x=" => "2",
101  "y=" => "2",
102  "=" => "2");
103 
104 // Special extensions
105 
106 // Each category can specify a PHP function that returns an altered
107 // version of the keyword.
108 
109 
110 
111 $this->linkscripts = array(
112  "1" => "donothing",
113  "2" => "donothing");
114 }
115 
116 
117 function donothing($keywordin)
118 {
119  return $keywordin;
120 }
121 
122 }?>