ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_systempolicies.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_systempolicies extends HFile{
6  function HFile_systempolicies(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // Systempolicies
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", "gray", "brown", "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  "MACHINE" => "1",
46  "USER" => "1",
47  "[STRINGS]" => "2",
48  "CATEGORY" => "2",
49  "CLASS" => "2",
50  "END" => "2",
51  "PART" => "2",
52  "POLICY" => "2",
53  "ACTIONLISTOFF" => "3",
54  "ACTIONLISTON" => "3",
55  "CHECKBOX" => "3",
56  "COMBOBOX" => "3",
57  "DELETE" => "3",
58  "DISABLED" => "3",
59  "DROPDOWNLIST" => "3",
60  "EDITTEXT" => "3",
61  "ENABLED" => "3",
62  "KEYNAME" => "3",
63  "LISTBOX" => "3",
64  "NAME" => "3",
65  "NUMERIC" => "3",
66  "TEXT" => "3",
67  "VALUE" => "3",
68  "VALUENAME" => "3",
69  "VALUEOFF" => "3",
70  "VALUEON" => "3",
71  "ACTIONLIST" => "4",
72  "ADDITIVE" => "4",
73  "DEFAULT" => "4",
74  "DEFCHECKED" => "4",
75  "EXPANDABLETEXT" => "4",
76  "EXPLICITVALUE" => "4",
77  "ITEMLIST" => "4",
78  "MAX" => "4",
79  "MAXLEN" => "4",
80  "MIN" => "4",
81  "REQUIRED" => "4",
82  "SPIN" => "4",
83  "SUGGESTIONS" => "4",
84  "TXTCONVERT" => "4",
85  "VALUEPREFIX" => "4",
86  "#ENDIF" => "6",
87  "#IF" => "6",
88  "NOSORT" => "6",
89  "VERSION" => "6");
90 
91 // Special extensions
92 
93 // Each category can specify a PHP function that returns an altered
94 // version of the keyword.
95 
96 
97 
98 $this->linkscripts = array(
99  "1" => "donothing",
100  "2" => "donothing",
101  "3" => "donothing",
102  "4" => "donothing",
103  "6" => "donothing");
104 }
105 
106 
107 function donothing($keywordin)
108 {
109  return $keywordin;
110 }
111 
112 }?>