ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_logic.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".")."/Services/COPage/syntax_highlight/php";
3 if (!isset ($BEAUT_PATH)) return;
4 require_once("$BEAUT_PATH/Beautifier/HFile.php");
5  class HFile_logic extends HFile{
6  function HFile_logic(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // LOGIC
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "1";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("blue", "purple", "gray", "brown");
21 $this->quotecolour = "blue";
22 $this->blockcommentcolour = "green";
23 $this->linecommentcolour = "green";
24 
25 // Indent Strings
26 
27 $this->indent = array();
28 $this->unindent = array();
29 
30 // String characters and delimiters
31 
32 $this->stringchars = array();
33 $this->delimiters = array("~", "!", "@", "$", "%", "^", "&", "*", "(", ")", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", " ", ",", ".", "?", "/", " ");
34 $this->escchar = "";
35 
36 // Comment settings
37 
38 $this->linecommenton = array(";");
39 $this->blockcommenton = array(";");
40 $this->blockcommentoff = array(";");
41 
42 // Keywords (keyword mapping to colour number)
43 
44 $this->keywords = array(
45  "BOOLEAN-EQUATIONS" => "1",
46  "end" => "1",
47  "flow-table" => "1",
48  "function-table" => "1",
49  "IDENTIFICATION" => "1",
50  "pal" => "1",
51  "pins" => "1",
52  "RUN-CONTROL" => "1",
53  "special-functions" => "1",
54  "STATE-ASSIGNMENT" => "1",
55  "X-NAMES" => "1",
56  "Y-NAMES" => "1",
57  "*" => "2",
58  "binary" => "3",
59  "listing" => "3",
60  "PROGFORMAT" => "3",
61  "Type" => "3",
62  "EQUATIONS" => "4",
63  "Relevant" => "4",
64  "FUSE" => "4",
65  "GA22V10" => "4",
66  "JEDEC" => "4",
67  "PinOut" => "4");
68 
69 // Special extensions
70 
71 // Each category can specify a PHP function that returns an altered
72 // version of the keyword.
73 
74 
75 
76 $this->linkscripts = array(
77  "1" => "donothing",
78  "2" => "donothing",
79  "3" => "donothing",
80  "4" => "donothing");
81 }
82 
83 
84 function donothing($keywordin)
85 {
86  return $keywordin;
87 }
88 
89 }?>