ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_smil.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_smil extends HFile{
6  function HFile_smil(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // SMIL
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  "<anchor" => "1",
48  "<anchor>" => "1",
49  "</anchor>" => "1",
50  "<animation>" => "1",
51  "</animation>" => "1",
52  "<audio" => "1",
53  "<audio>" => "1",
54  "</audio>" => "1",
55  "<body>" => "1",
56  "</body>" => "1",
57  "<head>" => "1",
58  "</head>" => "1",
59  "<img>" => "1",
60  "<layout" => "1",
61  "<layout>" => "1",
62  "</layout>" => "1",
63  "<meta" => "1",
64  "<par>" => "1",
65  "</par>" => "1",
66  "<ref>" => "1",
67  "</ref>" => "1",
68  "<region" => "1",
69  "<root-layout" => "1",
70  "<seq>" => "1",
71  "</seq>" => "1",
72  "<smil>" => "1",
73  "</smil>" => "1",
74  "<switch>" => "1",
75  "</switch>" => "1",
76  "<text" => "1",
77  "<text>" => "1",
78  "</text>" => "1",
79  "<textstream>" => "1",
80  "</textstream>" => "1",
81  "<video" => "1",
82  "<video>" => "1",
83  "</video>" => "1",
84  "//" => "1",
85  "/>" => "1",
86  "abstract=" => "2",
87  "alt=" => "2",
88  "anchor=" => "2",
89  "author=" => "2",
90  "background-color=" => "2",
91  "base=" => "2",
92  "begin=" => "2",
93  "clip-begin=" => "2",
94  "clip-end=" => "2",
95  "clock-val=" => "2",
96  "content=" => "2",
97  "coords=" => "2",
98  "copyright=" => "2",
99  "dur=" => "2",
100  "end=" => "2",
101  "endsync=" => "2",
102  "fill=" => "2",
103  "height=" => "2",
104  "href=" => "2",
105  "id=" => "2",
106  "longdesc=" => "2",
107  "name=" => "2",
108  "pics-label=" => "2",
109  "PICS-label=" => "2",
110  "region=" => "2",
111  "repeat=" => "2",
112  "show=" => "2",
113  "skip-content=" => "2",
114  "src=" => "2",
115  "system-bitrate=" => "2",
116  "system-captions=" => "2",
117  "system-language=" => "2",
118  "system-overdub-or-caption=" => "2",
119  "system-required=" => "2",
120  "system-screen-size=" => "2",
121  "system-screen-depth=" => "2",
122  "title=" => "2",
123  "type=" => "2",
124  "width=" => "2",
125  "=" => "2");
126 
127 // Special extensions
128 
129 // Each category can specify a PHP function that returns an altered
130 // version of the keyword.
131 
132 
133 
134 $this->linkscripts = array(
135  "1" => "donothing",
136  "2" => "donothing");
137 }
138 
139 
140 function donothing($keywordin)
141 {
142  return $keywordin;
143 }
144 
145 }?>