ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_nc.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_nc extends HFile
8  {
9  public function HFile_nc()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // NC Files
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "1";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("purple", "blue", "purple", "gray", "blue");
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("A", "B", "C", "I", "J", "K", "P", "Q", "R", "U", "V", "W", "X", "Y", "Z", "(", " ", ")", "=", "-", "+", "*");
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  "**" => "6",
50  "%" => "1",
51  ":" => "1",
52  "O" => "1",
53  "H" => "1",
54  "N" => "1",
55  "M" => "2",
56  "G" => "3",
57  "D" => "5",
58  "F" => "5",
59  "S" => "5",
60  "T" => "5",
61  "E" => "6",
62  "L" => "6",
63  "-" => "6");
64 
65  // Special extensions
66 
67  // Each category can specify a PHP function that returns an altered
68  // version of the keyword.
69 
70 
71 
72  $this->linkscripts = array(
73  "6" => "donothing",
74  "1" => "donothing",
75  "2" => "donothing",
76  "3" => "donothing",
77  "5" => "donothing");
78  }
79 
80 
81  public function donothing($keywordin)
82  {
83  return $keywordin;
84  }
85  }
$BEAUT_PATH
Definition: HFile_nc.php:2
donothing($keywordin)
Definition: HFile_nc.php:81
HFile_nc()
Definition: HFile_nc.php:9
Create styles array
The data for the language used.
Definition: HFile.php:21