ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_logic.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_logic extends HFile
8 {
9 public function HFile_logic()
10 {
11 $this->HFile();
12 /*************************************/
13 // Beautifier Highlighting Configuration File
14 // LOGIC
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", "brown");
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 "BOOLEAN-EQUATIONS" => "1",
50 "end" => "1",
51 "flow-table" => "1",
52 "function-table" => "1",
53 "IDENTIFICATION" => "1",
54 "pal" => "1",
55 "pins" => "1",
56 "RUN-CONTROL" => "1",
57 "special-functions" => "1",
58 "STATE-ASSIGNMENT" => "1",
59 "X-NAMES" => "1",
60 "Y-NAMES" => "1",
61 "*" => "2",
62 "binary" => "3",
63 "listing" => "3",
64 "PROGFORMAT" => "3",
65 "Type" => "3",
66 "EQUATIONS" => "4",
67 "Relevant" => "4",
68 "FUSE" => "4",
69 "GA22V10" => "4",
70 "JEDEC" => "4",
71 "PinOut" => "4");
72
73 // Special extensions
74
75 // Each category can specify a PHP function that returns an altered
76 // version of the keyword.
77
78
79
80 $this->linkscripts = array(
81 "1" => "donothing",
82 "2" => "donothing",
83 "3" => "donothing",
84 "4" => "donothing");
85 }
86
87
88 public function donothing($keywordin)
89 {
90 return $keywordin;
91 }
92 }
$BEAUT_PATH
Definition: HFile_logic.php:2
An exception for terminatinating execution or to throw for unit testing.
donothing($keywordin)
Definition: HFile_logic.php:88