ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_alphascript.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_alphascript extends HFile{
6  function HFile_alphascript(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // AlphaScript
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");
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  "@command" => "1",
46  "@date" => "1",
47  "@fileout" => "1",
48  "@listout" => "1",
49  "@regout" => "1",
50  "@scriptfile" => "1",
51  "@textout" => "1",
52  "@time" => "1",
53  "@user" => "1",
54  "@ver" => "1",
55  "!quit" => "2",
56  "!#BEGIN" => "3",
57  "!#END" => "3",
58  "!about" => "4",
59  "!clearallvars" => "4",
60  "!copy" => "4",
61  "!del" => "4",
62  "!delay" => "4",
63  "!else" => "4",
64  "!email" => "4",
65  "!emptyfile" => "4",
66  "!exe" => "4",
67  "!exist" => "4",
68  "!fileread" => "4",
69  "!goto" => "4",
70  "!if" => "4",
71  "!input" => "4",
72  "!iscancel" => "4",
73  "!isfault" => "4",
74  "!isnotfound" => "4",
75  "!isok" => "4",
76  "!let" => "4",
77  "!list" => "4",
78  "!listadd" => "4",
79  "!listclear" => "4",
80  "!log" => "4",
81  "!msg" => "4",
82  "!multitask" => "4",
83  "!openfolder" => "4",
84  "!regcreate" => "4",
85  "!regread" => "4",
86  "!regwrite" => "4",
87  "!skeys" => "4",
88  "!then" => "4",
89  "!winactive" => "4",
90  "!winkill" => "4",
91  "!winwait" => "4",
92  "!_closelogwindow" => "4",
93  "!_openlogwindow" => "4",
94  "!_pauselogwindow" => "4");
95 
96 // Special extensions
97 
98 // Each category can specify a PHP function that returns an altered
99 // version of the keyword.
100 
101 
102 
103 $this->linkscripts = array(
104  "1" => "donothing",
105  "2" => "donothing",
106  "3" => "donothing",
107  "4" => "donothing");
108 }
109 
110 
111 function donothing($keywordin)
112 {
113  return $keywordin;
114 }
115 
116 }?>