ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_corba.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_corba extends HFile
8 {
9 public function HFile_corba()
10 {
11 $this->HFile();
12 /*************************************/
13 // Beautifier Highlighting Configuration File
14 // CORBA IDL
15 /*************************************/
16 // Flags
17
18 $this->nocase = "0";
19 $this->notrim = "0";
20 $this->perl = "0";
21
22 // Colours
23
24 $this->colours = array("blue", "purple", "gray", "brown");
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 "any" => "1",
50 "boolean" => "1",
51 "case" => "1",
52 "char" => "1",
53 "const" => "1",
54 "default" => "1",
55 "double" => "1",
56 "enum" => "1",
57 "exception" => "1",
58 "FALSE" => "1",
59 "fixed" => "1",
60 "float" => "1",
61 "in" => "1",
62 "inout" => "1",
63 "long" => "1",
64 "Object" => "1",
65 "octet" => "1",
66 "oneway" => "1",
67 "out" => "1",
68 "raises" => "1",
69 "readonly" => "1",
70 "sequence" => "1",
71 "short" => "1",
72 "string" => "1",
73 "struct" => "1",
74 "switch" => "1",
75 "TRUE" => "1",
76 "typedef" => "1",
77 "unsigned" => "1",
78 "union" => "1",
79 "void" => "1",
80 "wchar" => "1",
81 "wstring" => "1",
82 "attribute" => "2",
83 "context" => "2",
84 "interface" => "2",
85 "module" => "2",
86 "#define" => "3",
87 "#error" => "3",
88 "#include" => "3",
89 "#elif" => "3",
90 "#if" => "3",
91 "#line" => "3",
92 "#else" => "3",
93 "#ifdef" => "3",
94 "#pragma" => "3",
95 "#endif" => "3",
96 "#ifndef" => "3",
97 "#undef" => "3",
98 "#" => "3",
99 "##" => "3",
100 "!" => "3",
101 "||" => "3",
102 "&&" => "3",
103 ";" => "4",
104 "{" => "4",
105 "}" => "4",
106 ":" => "4",
107 "," => "4",
108 "=" => "4",
109 "+" => "4",
110 "-" => "4",
111 "(" => "4",
112 ")" => "4",
113 "<" => "4",
114 ">" => "4",
115 "[" => "4",
116 "]" => "4",
117 "'" => "4",
118 "\"" => "4",
119 "\\" => "4",
120 "^" => "4",
121 "*" => "4",
122 "/" => "4",
123 "%" => "4",
124 "~" => "4");
125
126 // Special extensions
127
128 // Each category can specify a PHP function that returns an altered
129 // version of the keyword.
130
131
132
133 $this->linkscripts = array(
134 "1" => "donothing",
135 "2" => "donothing",
136 "3" => "donothing",
137 "4" => "donothing");
138 }
139
140
141 public function donothing($keywordin)
142 {
143 return $keywordin;
144 }
145 }
$BEAUT_PATH
Definition: HFile_corba.php:2
An exception for terminatinating execution or to throw for unit testing.
donothing($keywordin)