ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_hamster.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".") . "/Services/COPage/syntax_highlight/php";
3 if (!isset($BEAUT_PATH)) {
4  return;
5 }
6 require_once("$BEAUT_PATH/Beautifier/HFile.php");
7  class HFile_hamster extends HFile
8  {
9  public function HFile_hamster()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // Hamster Scripts
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", "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("~", "!", "@", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", "?");
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  "ras.dial" => "1",
50  "ras.hangup" => "1",
51  "setlogin" => "1",
52  "msgbox" => "2",
53  "quit" => "2",
54  "restart" => "2",
55  "start.wait" => "2",
56  "start.nowait" => "2",
57  "wait.delay" => "2",
58  "wait.idle" => "2",
59  "wait.until" => "2",
60  "fetchmail" => "3",
61  "mail.pull" => "3",
62  "news.post" => "3",
63  "news.pull" => "3",
64  "news.purge" => "3",
65  "news.rebuildhistory" => "3",
66  "sendmail" => "3");
67 
68  // Special extensions
69 
70  // Each category can specify a PHP function that returns an altered
71  // version of the keyword.
72 
73 
74 
75  $this->linkscripts = array(
76  "1" => "donothing",
77  "2" => "donothing",
78  "3" => "donothing");
79  }
80 
81 
82  public function donothing($keywordin)
83  {
84  return $keywordin;
85  }
86  }
$BEAUT_PATH
donothing($keywordin)
Create styles array
The data for the language used.
Definition: HFile.php:21