ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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)) return;
4require_once("$BEAUT_PATH/Beautifier/HFile.php");
5 class HFile_dtd extends HFile{
6 function HFile_dtd(){
7 $this->HFile();
8/*************************************/
9// Beautifier Highlighting Configuration File
10// DTD
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", "gray", "brown", "blue");
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 "<!ATTLIST" => "1",
46 "<!DOCTYPE" => "1",
47 "<!ELEMENT" => "1",
48 "<!ENTITY" => "1",
49 "|" => "1",
50 ">" => "1",
51 "(" => "1",
52 ")" => "1",
53 "%;" => "2",
54 "#FIXED" => "3",
55 "#FIXED>" => "3",
56 "#IMPLIED" => "3",
57 "#IMPLIED>" => "3",
58 "#PCDATA" => "3",
59 "#REQUIRED" => "3",
60 "#REQUIRED>" => "3",
61 "CDATA" => "4",
62 "ENTITY" => "4",
63 "ENTITIES" => "4",
64 "ID" => "4",
65 "IDREF" => "4",
66 "IDREFS" => "4",
67 "NMTOKEN" => "4",
68 "NMTOKENS" => "4",
69 "NOTATION" => "4",
70 "EMPTY" => "5",
71 "EMPTY>" => "5");
72
73// Special extensions
74
75// Each category can specify a PHP function that returns an altered
76// version of the keyword.
77
78
79
80$this->linkscripts = array(
81 "1" => "donothing",
82 "2" => "donothing",
83 "3" => "donothing",
84 "4" => "donothing",
85 "5" => "donothing");
86}
87
88
89function donothing($keywordin)
90{
91 return $keywordin;
92}
93
94}?>
$BEAUT_PATH
Definition: HFile_dtd.php:2
donothing($keywordin)
Definition: HFile_dtd.php:89
HFile_dtd()
Definition: HFile_dtd.php:6