ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_VerityTopics.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");
8 {
9 public function HFile_VerityTopics()
10 {
11 $this->HFile();
12 /*************************************/
13 // Beautifier Highlighting Configuration File
14 // Verity Topic File
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");
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 "<ACCRUE>" => "1",
50 "<ALL>" => "1",
51 "<AND>" => "1",
52 "<ANY>" => "1",
53 "<CONTAINS>" => "1",
54 "<ENDS>" => "1",
55 "<FILTER>" => "1",
56 "<FULLTEXT>" => "1",
57 "<IN>" => "1",
58 "<MATCHES>" => "1",
59 "<NEAR>" => "1",
60 "<OR>" => "1",
61 "<PARAGRAPH>" => "1",
62 "<PHRASE>" => "1",
63 "<PRODUCT>" => "1",
64 "<SENTENCE>" => "1",
65 "<SOUNDEX>" => "1",
66 "<STARTS>" => "1",
67 "<STEM>" => "1",
68 "<SUBSTRING>" => "1",
69 "<THESAURUS>" => "1",
70 "<WHERE>" => "1",
71 "<WILDCARD>" => "1",
72 "<WORD>" => "1",
73 "<YESNO>" => "1",
74 "<CASE>" => "2",
75 "<MANY>" => "2",
76 "<NOT>" => "2",
77 "<ORDER>" => "2",
78 "*" => "3",
79 "?" => "3",
80 "definition" => "4",
81 "wordtext" => "4",
82 "zonespec" => "4");
83
84 // Special extensions
85
86 // Each category can specify a PHP function that returns an altered
87 // version of the keyword.
88
89
90
91 $this->linkscripts = array(
92 "1" => "donothing",
93 "2" => "donothing",
94 "3" => "donothing",
95 "4" => "donothing");
96 }
97
98
99 public function donothing($keywordin)
100 {
101 return $keywordin;
102 }
103 }
An exception for terminatinating execution or to throw for unit testing.