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_rtf extends HFile{
00006 function HFile_rtf(){
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");
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("#", "$", "%", "&", "(", ")", "+", ",", "-", ".", " ", "/", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ":", ";", "<", "=", ">", "[", "\\", "]", "^", "_", "{", "|", "}", "~", "`");
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 "\\ansi" => "1",
00046 "\\author" => "1",
00047 "\\b" => "1",
00048 "\\company" => "1",
00049 "\\deff" => "1",
00050 "\\f" => "1",
00051 "\\fmodern" => "1",
00052 "\\fnil" => "1",
00053 "\\fonttbl" => "1",
00054 "\\froman" => "1",
00055 "\\fswiss" => "1",
00056 "\\ftech" => "1",
00057 "\\i" => "1",
00058 "\\info" => "1",
00059 "\\operator" => "1",
00060 "\\par" => "1",
00061 "\\pard" => "1",
00062 "\\qc" => "1",
00063 "\\qj" => "1",
00064 "\\ql" => "1",
00065 "\\qr" => "1",
00066 "\\rtf" => "1",
00067 "\\title" => "1",
00068 "\\ul" => "1",
00069 "\\*" => "2",
00070 "\\fs24" => "3",
00071 "\\margl" => "3",
00072 "\\margr" => "3",
00073 "\\sa" => "3",
00074 "\\sb" => "3");
00075
00076
00077
00078
00079
00080
00081
00082
00083 $this->linkscripts = array(
00084 "1" => "donothing",
00085 "2" => "donothing",
00086 "3" => "donothing");
00087 }
00088
00089
00090 function donothing($keywordin)
00091 {
00092 return $keywordin;
00093 }
00094
00095 }?>