ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_dtd.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_dtd extends HFile
8 {
9 public function HFile_dtd()
10 {
11 $this->HFile();
12 /*************************************/
13 // Beautifier Highlighting Configuration File
14 // DTD
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", "gray", "brown", "blue");
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 "<!ATTLIST" => "1",
50 "<!DOCTYPE" => "1",
51 "<!ELEMENT" => "1",
52 "<!ENTITY" => "1",
53 "|" => "1",
54 ">" => "1",
55 "(" => "1",
56 ")" => "1",
57 "%;" => "2",
58 "#FIXED" => "3",
59 "#FIXED>" => "3",
60 "#IMPLIED" => "3",
61 "#IMPLIED>" => "3",
62 "#PCDATA" => "3",
63 "#REQUIRED" => "3",
64 "#REQUIRED>" => "3",
65 "CDATA" => "4",
66 "ENTITY" => "4",
67 "ENTITIES" => "4",
68 "ID" => "4",
69 "IDREF" => "4",
70 "IDREFS" => "4",
71 "NMTOKEN" => "4",
72 "NMTOKENS" => "4",
73 "NOTATION" => "4",
74 "EMPTY" => "5",
75 "EMPTY>" => "5");
76
77 // Special extensions
78
79 // Each category can specify a PHP function that returns an altered
80 // version of the keyword.
81
82
83
84 $this->linkscripts = array(
85 "1" => "donothing",
86 "2" => "donothing",
87 "3" => "donothing",
88 "4" => "donothing",
89 "5" => "donothing");
90 }
91
92
93 public function donothing($keywordin)
94 {
95 return $keywordin;
96 }
97 }
$BEAUT_PATH
Definition: HFile_dtd.php:2
An exception for terminatinating execution or to throw for unit testing.
donothing($keywordin)
Definition: HFile_dtd.php:93
HFile_dtd()
Definition: HFile_dtd.php:9