ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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)) {
4  return;
5 }
6 require_once("$BEAUT_PATH/Beautifier/HFile.php");
7  class HFile_smil extends HFile
8  {
9  public function HFile_smil()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // SMIL
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "1";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("blue", "purple");
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  "<a" => "1",
50  "</a>" => "1",
51  "<anchor" => "1",
52  "<anchor>" => "1",
53  "</anchor>" => "1",
54  "<animation>" => "1",
55  "</animation>" => "1",
56  "<audio" => "1",
57  "<audio>" => "1",
58  "</audio>" => "1",
59  "<body>" => "1",
60  "</body>" => "1",
61  "<head>" => "1",
62  "</head>" => "1",
63  "<img>" => "1",
64  "<layout" => "1",
65  "<layout>" => "1",
66  "</layout>" => "1",
67  "<meta" => "1",
68  "<par>" => "1",
69  "</par>" => "1",
70  "<ref>" => "1",
71  "</ref>" => "1",
72  "<region" => "1",
73  "<root-layout" => "1",
74  "<seq>" => "1",
75  "</seq>" => "1",
76  "<smil>" => "1",
77  "</smil>" => "1",
78  "<switch>" => "1",
79  "</switch>" => "1",
80  "<text" => "1",
81  "<text>" => "1",
82  "</text>" => "1",
83  "<textstream>" => "1",
84  "</textstream>" => "1",
85  "<video" => "1",
86  "<video>" => "1",
87  "</video>" => "1",
88  "//" => "1",
89  "/>" => "1",
90  "abstract=" => "2",
91  "alt=" => "2",
92  "anchor=" => "2",
93  "author=" => "2",
94  "background-color=" => "2",
95  "base=" => "2",
96  "begin=" => "2",
97  "clip-begin=" => "2",
98  "clip-end=" => "2",
99  "clock-val=" => "2",
100  "content=" => "2",
101  "coords=" => "2",
102  "copyright=" => "2",
103  "dur=" => "2",
104  "end=" => "2",
105  "endsync=" => "2",
106  "fill=" => "2",
107  "height=" => "2",
108  "href=" => "2",
109  "id=" => "2",
110  "longdesc=" => "2",
111  "name=" => "2",
112  "pics-label=" => "2",
113  "PICS-label=" => "2",
114  "region=" => "2",
115  "repeat=" => "2",
116  "show=" => "2",
117  "skip-content=" => "2",
118  "src=" => "2",
119  "system-bitrate=" => "2",
120  "system-captions=" => "2",
121  "system-language=" => "2",
122  "system-overdub-or-caption=" => "2",
123  "system-required=" => "2",
124  "system-screen-size=" => "2",
125  "system-screen-depth=" => "2",
126  "title=" => "2",
127  "type=" => "2",
128  "width=" => "2",
129  "=" => "2");
130 
131  // Special extensions
132 
133  // Each category can specify a PHP function that returns an altered
134  // version of the keyword.
135 
136 
137 
138  $this->linkscripts = array(
139  "1" => "donothing",
140  "2" => "donothing");
141  }
142 
143 
144  public function donothing($keywordin)
145  {
146  return $keywordin;
147  }
148  }
$BEAUT_PATH
Definition: HFile_smil.php:2
Create styles array
The data for the language used.
donothing($keywordin)
Definition: HFile_smil.php:144
Definition: HFile.php:21