ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_directives.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_directives extends HFile
8 {
9 public function HFile_directives()
10 {
11 $this->HFile();
12 /*************************************/
13 // Beautifier Highlighting Configuration File
14 // Directives file
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 "ACTIONS" => "1",
50 "ALL" => "1",
51 "DELETE" => "1",
52 "END_TO" => "1",
53 "EXPORT" => "1",
54 "EXPORT_REF" => "1",
55 "GROUP" => "1",
56 "NO_EXPORT" => "1",
57 "OBJECT" => "1",
58 "STOP_IF" => "1",
59 "THROUGH" => "1",
60 "TO" => "1",
61 "UNIQUE_FIELD" => "1",
62 "UNIQUE_RELATION" => "1",
63 "WHERE" => "1",
64 "=" => "2",
65 "::" => "2",
66 ";" => "2",
67 "," => "2");
68
69 // Special extensions
70
71 // Each category can specify a PHP function that returns an altered
72 // version of the keyword.
73
74
75
76 $this->linkscripts = array(
77 "1" => "donothing",
78 "2" => "donothing");
79 }
80
81
82 public function donothing($keywordin)
83 {
84 return $keywordin;
85 }
86 }
$BEAUT_PATH
An exception for terminatinating execution or to throw for unit testing.
donothing($keywordin)