00001 <?php
00002 $BEAUT_PATH = realpath(".")."/syntax_highlight/php";
00003 if (!isset ($BEAUT_PATH)) return;
00004 require_once("$BEAUT_PATH/Beautifier/HFile.php");
00005 class HFile_dtd extends HFile{
00006 function HFile_dtd(){
00007 $this->HFile();
00008
00009
00010
00011
00012
00013
00014 $this->nocase = "0";
00015 $this->notrim = "0";
00016 $this->perl = "0";
00017
00018
00019
00020 $this->colours = array("blue", "purple", "gray", "brown", "blue");
00021 $this->quotecolour = "blue";
00022 $this->blockcommentcolour = "green";
00023 $this->linecommentcolour = "green";
00024
00025
00026
00027 $this->indent = array();
00028 $this->unindent = array();
00029
00030
00031
00032 $this->stringchars = array();
00033 $this->delimiters = array("~", "@", "$", "%", "^", "&", "*", "(", ")", "+", "=", "|", "\\", "{", "}", ":", ";", "\"", "'", "<", ">", " ", ",", " ", ".", "?");
00034 $this->escchar = "";
00035
00036
00037
00038 $this->linecommenton = array("");
00039 $this->blockcommenton = array("<!--");
00040 $this->blockcommentoff = array("-->");
00041
00042
00043
00044 $this->keywords = array(
00045 "<!ATTLIST" => "1",
00046 "<!DOCTYPE" => "1",
00047 "<!ELEMENT" => "1",
00048 "<!ENTITY" => "1",
00049 "|" => "1",
00050 ">" => "1",
00051 "(" => "1",
00052 ")" => "1",
00053 "%;" => "2",
00054 "#FIXED" => "3",
00055 "#FIXED>" => "3",
00056 "#IMPLIED" => "3",
00057 "#IMPLIED>" => "3",
00058 "#PCDATA" => "3",
00059 "#REQUIRED" => "3",
00060 "#REQUIRED>" => "3",
00061 "CDATA" => "4",
00062 "ENTITY" => "4",
00063 "ENTITIES" => "4",
00064 "ID" => "4",
00065 "IDREF" => "4",
00066 "IDREFS" => "4",
00067 "NMTOKEN" => "4",
00068 "NMTOKENS" => "4",
00069 "NOTATION" => "4",
00070 "EMPTY" => "5",
00071 "EMPTY>" => "5");
00072
00073
00074
00075
00076
00077
00078
00079
00080 $this->linkscripts = array(
00081 "1" => "donothing",
00082 "2" => "donothing",
00083 "3" => "donothing",
00084 "4" => "donothing",
00085 "5" => "donothing");
00086 }
00087
00088
00089 function donothing($keywordin)
00090 {
00091 return $keywordin;
00092 }
00093
00094 }?>