ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_schema.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_schema extends HFile
8  {
9  public function HFile_schema()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // Schema
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");
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  "ALIAS" => "1",
50  "ALLOW_NULL" => "1",
51  "ARRAY_SIZE" => "1",
52  "CHANGE_DATE" => "1",
53  "CMN_DATA_TYPE" => "1",
54  "COMMENT" => "1",
55  "DB_DATA_TYPE" => "1",
56  "DEFAULT" => "1",
57  "FIELDS" => "1",
58  "FIELDS_END" => "1",
59  "FROM" => "1",
60  "GEN_FIELD_ID" => "1",
61  "INDEXES" => "1",
62  "INDEXES_END" => "1",
63  "INV_REL" => "1",
64  "JOINS" => "1",
65  "JOINS_END" => "1",
66  "LOCAL_SCHEMA_REVISION" => "1",
67  "MANDATORY" => "1",
68  "MTM" => "1",
69  "MTO" => "1",
70  "OBJECT" => "1",
71  "OBJECT_END" => "1",
72  "OPTIONAL" => "1",
73  "OTM" => "1",
74  "OTOF" => "1",
75  "OTOP" => "1",
76  "OUTER" => "1",
77  "PREDEFINED" => "1",
78  "RELATIONS" => "1",
79  "RELATIONS_END" => "1",
80  "SCHEMA_REVISION" => "1",
81  "SEARCHABLE" => "1",
82  "SUBJECT" => "1",
83  "UNIQUE" => "1",
84  "USER_DEFINED" => "1",
85  "VIEW" => "1",
86  "VIEW_END" => "1",
87  "," => "2",
88  ";" => "2",
89  "=" => "2");
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  }
102 
103 
104  public function donothing($keywordin)
105  {
106  return $keywordin;
107  }
108  }
$BEAUT_PATH
Definition: HFile_schema.php:2
Create styles array
The data for the language used.
Definition: HFile.php:21
donothing($keywordin)