ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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)) return;
4 require_once("$BEAUT_PATH/Beautifier/HFile.php");
5  class HFile_schema extends HFile{
6  function HFile_schema(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // Schema
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "0";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("blue", "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  "ALIAS" => "1",
46  "ALLOW_NULL" => "1",
47  "ARRAY_SIZE" => "1",
48  "CHANGE_DATE" => "1",
49  "CMN_DATA_TYPE" => "1",
50  "COMMENT" => "1",
51  "DB_DATA_TYPE" => "1",
52  "DEFAULT" => "1",
53  "FIELDS" => "1",
54  "FIELDS_END" => "1",
55  "FROM" => "1",
56  "GEN_FIELD_ID" => "1",
57  "INDEXES" => "1",
58  "INDEXES_END" => "1",
59  "INV_REL" => "1",
60  "JOINS" => "1",
61  "JOINS_END" => "1",
62  "LOCAL_SCHEMA_REVISION" => "1",
63  "MANDATORY" => "1",
64  "MTM" => "1",
65  "MTO" => "1",
66  "OBJECT" => "1",
67  "OBJECT_END" => "1",
68  "OPTIONAL" => "1",
69  "OTM" => "1",
70  "OTOF" => "1",
71  "OTOP" => "1",
72  "OUTER" => "1",
73  "PREDEFINED" => "1",
74  "RELATIONS" => "1",
75  "RELATIONS_END" => "1",
76  "SCHEMA_REVISION" => "1",
77  "SEARCHABLE" => "1",
78  "SUBJECT" => "1",
79  "UNIQUE" => "1",
80  "USER_DEFINED" => "1",
81  "VIEW" => "1",
82  "VIEW_END" => "1",
83  "," => "2",
84  ";" => "2",
85  "=" => "2");
86 
87 // Special extensions
88 
89 // Each category can specify a PHP function that returns an altered
90 // version of the keyword.
91 
92 
93 
94 $this->linkscripts = array(
95  "1" => "donothing",
96  "2" => "donothing");
97 }
98 
99 
100 function donothing($keywordin)
101 {
102  return $keywordin;
103 }
104 
105 }?>