ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_vtml.php
Go to the documentation of this file.
1<?php
2$BEAUT_PATH = realpath(".") . "/Services/COPage/syntax_highlight/php";
3if (!isset($BEAUT_PATH)) {
4 return;
5}
6require_once("$BEAUT_PATH/Beautifier/HFile.php");
7 class HFile_vtml extends HFile
8 {
9 public function HFile_vtml()
10 {
11 $this->HFile();
12 /*************************************/
13 // Beautifier Highlighting Configuration File
14 // VTML
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 "<ATTRIB" => "1",
50 "<ATTRIBUTES>" => "1",
51 "</ATTRIBUTES>" => "1",
52 "<CONTAINER" => "1",
53 "</CONTAINER>" => "1",
54 "<CONTROL" => "1",
55 "<EDITORLAYOUT" => "1",
56 "</EDITORLAYOUT>" => "1",
57 "<TAG>" => "1",
58 "<TAG" => "1",
59 "</TAG>" => "1",
60 "<TAGLAYOUT>" => "1",
61 "</TAGLAYOUT>" => "1",
62 "<WIZBREAK>" => "1",
63 "<WIZCONTINUE>" => "1",
64 "<WIZIF" => "1",
65 "</WIZIF>" => "1",
66 "<WIZELSE>" => "1",
67 "<WIZLOOP" => "1",
68 "</WIZLOOP>" => "1",
69 "<WZISET" => "1",
70 "ALIGN=" => "2",
71 "ALLOWDECIMALPOINT=" => "2",
72 "ALLOWNEGATIVE=" => "2",
73 "ANCHOR=" => "2",
74 "ATTRIBUTES" => "2",
75 "AUTOSELECT=" => "2",
76 "AUTOSIZE=" => "2",
77 "BODYEDITING=" => "2",
78 "CAPTION=" => "2",
79 "CENTER=" => "2",
80 "CHARCASE=" => "2",
81 "CHECKED=" => "2",
82 "CONDITION=" => "2",
83 "CONTROL=" => "2",
84 "CORNER=" => "2",
85 "DEFAULT=" => "2",
86 "DIRONLY=" => "2",
87 "DOWN=" => "2",
88 "DSNAMECONTROL=" => "2",
89 "EDITABLE=" => "2",
90 "FILENAMEONLY=" => "2",
91 "FILEPATH=" => "2",
92 "FILTER=" => "2",
93 "FROM=" => "2",
94 "HEIGHT=" => "2",
95 "HORIZRESIZE=" => "2",
96 "INDEX=" => "2",
97 "LFHEIGHT=" => "2",
98 "LFWIDTH=" => "2",
99 "LIST=" => "2",
100 "MAXHEIGHTPADDING=" => "2",
101 "MAXLENGTH=" => "2",
102 "MAXWIDTHPADDING=" => "2",
103 "MULTILINE=" => "2",
104 "NAME=" => "2",
105 "PASSWORDCHAR=" => "2",
106 "QUERYNAMECONTROL=" => "2",
107 "RELATIVE=" => "2",
108 "RIGHT=" => "2",
109 "SCROLLBAR=" => "2",
110 "SELECTED=" => "2",
111 "STEP=" => "2",
112 "TO=" => "2",
113 "TRANSPARENT=" => "2",
114 "TYPE=" => "2",
115 "VALIGN=" => "2",
116 "VALUE=" => "2",
117 "VERTRESIZE=" => "2",
118 "WIDTH=" => "2",
119 "WRAP=" => "2");
120
121 // Special extensions
122
123 // Each category can specify a PHP function that returns an altered
124 // version of the keyword.
125
126
127
128 $this->linkscripts = array(
129 "1" => "donothing",
130 "2" => "donothing");
131 }
132
133
134 public function donothing($keywordin)
135 {
136 return $keywordin;
137 }
138 }
$BEAUT_PATH
Definition: HFile_vtml.php:2
An exception for terminatinating execution or to throw for unit testing.
donothing($keywordin)
Definition: HFile_vtml.php:134