ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_rtf.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_rtf extends HFile
8 {
9 public function HFile_rtf()
10 {
11 $this->HFile();
12 /*************************************/
13 // Beautifier Highlighting Configuration File
14 // Rich Text Format
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");
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("#", "$", "%", "&", "(", ")", "+", ",", "-", ".", " ", "/", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ":", ";", "<", "=", ">", "[", "\\", "]", "^", "_", "{", "|", "}", "~", "`");
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 "\\ansi" => "1",
50 "\\author" => "1",
51 "\\b" => "1",
52 "\\company" => "1",
53 "\\deff" => "1",
54 "\\f" => "1",
55 "\\fmodern" => "1",
56 "\\fnil" => "1",
57 "\\fonttbl" => "1",
58 "\\froman" => "1",
59 "\\fswiss" => "1",
60 "\\ftech" => "1",
61 "\\i" => "1",
62 "\\info" => "1",
63 "\\operator" => "1",
64 "\\par" => "1",
65 "\\pard" => "1",
66 "\\qc" => "1",
67 "\\qj" => "1",
68 "\\ql" => "1",
69 "\\qr" => "1",
70 "\\rtf" => "1",
71 "\\title" => "1",
72 "\\ul" => "1",
73 "\\*" => "2",
74 "\\fs24" => "3",
75 "\\margl" => "3",
76 "\\margr" => "3",
77 "\\sa" => "3",
78 "\\sb" => "3");
79
80 // Special extensions
81
82 // Each category can specify a PHP function that returns an altered
83 // version of the keyword.
84
85
86
87 $this->linkscripts = array(
88 "1" => "donothing",
89 "2" => "donothing",
90 "3" => "donothing");
91 }
92
93
94 public function donothing($keywordin)
95 {
96 return $keywordin;
97 }
98 }
$BEAUT_PATH
Definition: HFile_rtf.php:2
An exception for terminatinating execution or to throw for unit testing.
donothing($keywordin)
Definition: HFile_rtf.php:94
HFile_rtf()
Definition: HFile_rtf.php:9