ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_fas.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_fas extends HFile{
6  function HFile_fas(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // Flash ActionScript
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");
21 $this->quotecolour = "blue";
22 $this->blockcommentcolour = "green";
23 $this->linecommentcolour = "green";
24 
25 // Indent Strings
26 
27 $this->indent = array("else\"\")\"\"(\"\"1\"\"2\"\"3\"\"4\"\"5\"\"6\"\"7\"\"8\"\"9\"\"0\"\"\"");
28 $this->unindent = array("end", "else", "#");
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  "all" => "1",
46  "begin" => "1",
47  "Comment" => "1",
48  "Call" => "1",
49  "Clip" => "1",
50  "Command" => "1",
51  "Duplicate" => "1",
52  "Drag" => "2",
53  "End" => "1",
54  "Else" => "1",
55  "FS" => "1",
56  "Frame" => "1",
57  "get" => "1",
58  "go" => "1",
59  "Getproperty" => "1",
60  "High" => "2",
61  "If" => "1",
62  "Loop" => "1",
63  "Load" => "1",
64  "Loaded" => "1",
65  "Movie" => "1",
66  "Next" => "1",
67  "Play" => "1",
68  "Property" => "1",
69  "Previous" => "1",
70  "Quality" => "1",
71  "Remove" => "1",
72  "Set" => "1",
73  "Start" => "1",
74  "Stop" => "1",
75  "Sounds" => "1",
76  "sp" => "1",
77  "sv" => "1",
78  "Trace" => "1",
79  "Toggle" => "1",
80  "tell" => "1",
81  "Target" => "1",
82  "to" => "1",
83  "URL" => "1",
84  "Variable" => "1",
85  "While" => "1",
86  "Alpha" => "2",
87  "B=" => "2",
88  "buffer" => "2",
89  "Over" => "2",
90  "Out" => "2",
91  "focus" => "2",
92  "Key:" => "2",
93  "L=" => "2",
94  "lockcenter" => "2",
95  "Name" => "2",
96  "Outside" => "2",
97  "Press" => "2",
98  "Position" => "2",
99  "Rotation" => "2",
100  "R" => "2",
101  "Release" => "2",
102  "Roll" => "2",
103  "rectangle" => "2",
104  "Show" => "2",
105  "Sound" => "2",
106  "Scale" => "2",
107  "T=" => "2",
108  "time" => "2",
109  "vars" => "2",
110  "visibility" => "2",
111  "window" => "2",
112  "X" => "2",
113  "Y" => "2",
114  "_currentframe" => "3",
115  "_x" => "3",
116  "_y" => "3",
117  "_width" => "3",
118  "_height" => "3",
119  "_rotation" => "3",
120  "_target" => "3",
121  "_name" => "3",
122  "_xscale" => "3",
123  "_yscale" => "3",
124  "_droptarget" => "3",
125  "_visible" => "3",
126  "_alpha" => "3",
127  "_framesloaded" => "3",
128  "_totalframes" => "3",
129  "and" => "3",
130  "Chr" => "3",
131  "Eval" => "3",
132  "eq" => "3",
133  "False" => "3",
134  "GetTimer" => "3",
135  "ge" => "3",
136  "gt" => "3",
137  "Int" => "3",
138  "Length" => "3",
139  "le" => "3",
140  "lt" => "3",
141  "Newline" => "3",
142  "ne" => "3",
143  "not" => "3",
144  "Ord" => "3",
145  "or" => "3",
146  "Random" => "3",
147  "Substring" => "3",
148  "True" => "3");
149 
150 // Special extensions
151 
152 // Each category can specify a PHP function that returns an altered
153 // version of the keyword.
154 
155 
156 
157 $this->linkscripts = array(
158  "1" => "donothing",
159  "2" => "donothing",
160  "3" => "donothing");
161 }
162 
163 
164 function donothing($keywordin)
165 {
166  return $keywordin;
167 }
168 
169 }?>