ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_spin.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_spin extends HFile{
6  function HFile_spin(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // Spin
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "0";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("blue", "purple", "gray", "brown", "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  "bit" => "1",
46  "bool" => "1",
47  "byte" => "1",
48  "chan" => "1",
49  "int" => "1",
50  "local" => "1",
51  "mtype" => "1",
52  "short" => "1",
53  "typedef" => "1",
54  "unsigned" => "1",
55  "assert" => "2",
56  "init" => "2",
57  "priority" => "2",
58  "proctype" => "2",
59  "provided" => "2",
60  "active" => "3",
61  "break" => "3",
62  "do" => "3",
63  "else" => "3",
64  "empty" => "3",
65  "enabled" => "3",
66  "eval" => "3",
67  "fi" => "3",
68  "full" => "3",
69  "goto" => "3",
70  "if" => "3",
71  "inline" => "3",
72  "len" => "3",
73  "nempty" => "3",
74  "nfull" => "3",
75  "od" => "3",
76  "of" => "3",
77  "printf" => "3",
78  "run" => "3",
79  "skip" => "3",
80  "timeout" => "3",
81  "xr" => "3",
82  "xs" => "3",
83  "?" => "4",
84  "??" => "4",
85  "!" => "4",
86  "!!" => "4",
87  "@" => "4",
88  "!=" => "5",
89  "+" => "5",
90  "-" => "5",
91  "->" => "5",
92  "::" => "5",
93  "<" => "5",
94  "<=" => "5",
95  "==" => "5",
96  ">" => "5",
97  ">=" => "5",
98  "unless" => "5",
99  "_" => "6",
100  "_last" => "6",
101  "_pid" => "6",
102  "cond_expr" => "6",
103  "false" => "6",
104  "np_" => "6",
105  "pc_value" => "6",
106  "STDIN" => "6",
107  "true" => "6",
108  "accept" => "7",
109  "end" => "7",
110  "progress" => "7",
111  "atomic" => "8",
112  "d_step" => "8",
113  "hidden" => "8",
114  "ltl" => "8",
115  "never" => "8",
116  "notrace" => "8",
117  "trace" => "8",
118  "show" => "8");
119 
120 // Special extensions
121 
122 // Each category can specify a PHP function that returns an altered
123 // version of the keyword.
124 
125 
126 
127 $this->linkscripts = array(
128  "1" => "donothing",
129  "2" => "donothing",
130  "3" => "donothing",
131  "4" => "donothing",
132  "5" => "donothing",
133  "6" => "donothing",
134  "7" => "donothing",
135  "8" => "donothing");
136 }
137 
138 
139 function donothing($keywordin)
140 {
141  return $keywordin;
142 }
143 
144 }?>