ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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)) {
4  return;
5 }
6 require_once("$BEAUT_PATH/Beautifier/HFile.php");
7  class HFile_systempolicies extends HFile
8  {
9  public function HFile_systempolicies()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // Systempolicies
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", "gray", "brown", "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  "MACHINE" => "1",
50  "USER" => "1",
51  "[STRINGS]" => "2",
52  "CATEGORY" => "2",
53  "CLASS" => "2",
54  "END" => "2",
55  "PART" => "2",
56  "POLICY" => "2",
57  "ACTIONLISTOFF" => "3",
58  "ACTIONLISTON" => "3",
59  "CHECKBOX" => "3",
60  "COMBOBOX" => "3",
61  "DELETE" => "3",
62  "DISABLED" => "3",
63  "DROPDOWNLIST" => "3",
64  "EDITTEXT" => "3",
65  "ENABLED" => "3",
66  "KEYNAME" => "3",
67  "LISTBOX" => "3",
68  "NAME" => "3",
69  "NUMERIC" => "3",
70  "TEXT" => "3",
71  "VALUE" => "3",
72  "VALUENAME" => "3",
73  "VALUEOFF" => "3",
74  "VALUEON" => "3",
75  "ACTIONLIST" => "4",
76  "ADDITIVE" => "4",
77  "DEFAULT" => "4",
78  "DEFCHECKED" => "4",
79  "EXPANDABLETEXT" => "4",
80  "EXPLICITVALUE" => "4",
81  "ITEMLIST" => "4",
82  "MAX" => "4",
83  "MAXLEN" => "4",
84  "MIN" => "4",
85  "REQUIRED" => "4",
86  "SPIN" => "4",
87  "SUGGESTIONS" => "4",
88  "TXTCONVERT" => "4",
89  "VALUEPREFIX" => "4",
90  "#ENDIF" => "6",
91  "#IF" => "6",
92  "NOSORT" => "6",
93  "VERSION" => "6");
94 
95  // Special extensions
96 
97  // Each category can specify a PHP function that returns an altered
98  // version of the keyword.
99 
100 
101 
102  $this->linkscripts = array(
103  "1" => "donothing",
104  "2" => "donothing",
105  "3" => "donothing",
106  "4" => "donothing",
107  "6" => "donothing");
108  }
109 
110 
111  public function donothing($keywordin)
112  {
113  return $keywordin;
114  }
115  }
Create styles array
The data for the language used.
Definition: HFile.php:21