ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_realtext Class Reference
+ Inheritance diagram for HFile_realtext:
+ Collaboration diagram for HFile_realtext:

Public Member Functions

 HFile_realtext ()
 
 donothing ($keywordin)
 
- Public Member Functions inherited from HFile
 __construct ()
 
 parse_file ($file)
 
 to_perl ($stub, $tofile=1)
 
 to_php ($stub, $tofile=1)
 
 _get_categories ()
 
 _dump_linkscripts ()
 
 _dump_perl_linkscripts ()
 
 _dump_perl_defaultscripts ()
 
 _dump_colours ()
 
 _dump_var ($variable, $name)
 
 _dump_array ($array, $name)
 
 _dump_perl_array ($array, $name)
 
 _dump_hash ($hash, $name)
 
 _dump_perl_hash ($hash, $name)
 

Detailed Description

Definition at line 7 of file HFile_realtext.php.

Member Function Documentation

◆ donothing()

HFile_realtext::donothing (   $keywordin)

Definition at line 121 of file HFile_realtext.php.

122  {
123  return $keywordin;
124  }

◆ HFile_realtext()

HFile_realtext::HFile_realtext ( )

Definition at line 9 of file HFile_realtext.php.

References array.

10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // RealText
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "1";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("blue", "purple");
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  "<a" => "1",
50  "</a>" => "1",
51  "<a>" => "1",
52  "<b>" => "1",
53  "</b>" => "1",
54  "<br/>" => "1",
55  "<center>" => "1",
56  "</center>" => "1",
57  "<clear/>" => "1",
58  "<font>" => "1",
59  "<font" => "1",
60  "</font>" => "1",
61  "<hr/>" => "1",
62  "<i>" => "1",
63  "</i>" => "1",
64  "<li>" => "1",
65  "</li>" => "1",
66  "<ol>" => "1",
67  "</ol>" => "1",
68  "<p>" => "1",
69  "</p>" => "1",
70  "<pos/>" => "1",
71  "<pre>" => "1",
72  "</pre>" => "1",
73  "<required>" => "1",
74  "</required>" => "1",
75  "<time" => "1",
76  "<tl>" => "1",
77  "</tl>" => "1",
78  "<tu>" => "1",
79  "</tu>" => "1",
80  "<u>" => "1",
81  "</u>" => "1",
82  "<ul>" => "1",
83  "</ul>" => "1",
84  "<window>" => "1",
85  "<window" => "1",
86  "</window>" => "1",
87  "//" => "1",
88  "/>" => "1",
89  "attribute=" => "2",
90  "begin=" => "2",
91  "bgcolor=" => "2",
92  "color=" => "2",
93  "crawlrate=" => "2",
94  "duration=" => "2",
95  "end=" => "2",
96  "height=" => "2",
97  "href=" => "2",
98  "scrollrate=" => "2",
99  "size=" => "2",
100  "target=" => "2",
101  "type=" => "2",
102  "width=" => "2",
103  "wordwrap=" => "2",
104  "x=" => "2",
105  "y=" => "2",
106  "=" => "2");
107 
108  // Special extensions
109 
110  // Each category can specify a PHP function that returns an altered
111  // version of the keyword.
112 
113 
114 
115  $this->linkscripts = array(
116  "1" => "donothing",
117  "2" => "donothing");
118  }
Create styles array
The data for the language used.
Definition: HFile.php:21

The documentation for this class was generated from the following file: