ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
HFile_uemacro.php
Go to the documentation of this file.
1<?php
2$BEAUT_PATH = realpath(".")."/Services/COPage/syntax_highlight/php";
3if (!isset ($BEAUT_PATH)) return;
4require_once("$BEAUT_PATH/Beautifier/HFile.php");
5 class HFile_uemacro extends HFile{
6 function HFile_uemacro(){
7 $this->HFile();
8/*************************************/
9// Beautifier Highlighting Configuration File
10// UE MACRO
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", "blue", "purple");
21$this->quotecolour = "blue";
22$this->blockcommentcolour = "green";
23$this->linecommentcolour = "green";
24
25// Indent Strings
26
27$this->indent = array("Else", "IfCharIs", "IfColNum", "IfEof", "IfFound", "IfNotFound", "IfSel", "Loop", "StartSelect");
28$this->unindent = array("Else", "EndIf", "EndLoop", "EndSelect");
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 "AnsiToOem" => "1",
46 "Bottom" => "1",
47 "CloseFile" => "1",
48 "ColumnModeOff" => "1",
49 "ColumnModeOn" => "1",
50 "ColumnCut" => "1",
51 "ColumnDelete" => "1",
52 "ColumnInsert" => "1",
53 "ColumnInsertNum" => "1",
54 "Copy" => "1",
55 "Cut" => "1",
56 "Delete" => "1",
57 "DeleteLine" => "1",
58 "DeleteToEndOfLine" => "1",
59 "DeleteToStartOfLine" => "1",
60 "DosToMac" => "1",
61 "DosToUnix" => "1",
62 "ExitMacro" => "1",
63 "GetString" => "1",
64 "GetValue" => "1",
65 "GotoBookMark" => "1",
66 "GotoLine" => "1",
67 "GotoPage" => "1",
68 "HexDelete" => "1",
69 "HexInsert" => "1",
70 "HexOff" => "1",
71 "HexOn" => "1",
72 "InsertMode" => "1",
73 "InsertPageBreak" => "1",
74 "InvertCase" => "1",
75 "NextWindow" => "1",
76 "NewFile" => "1",
77 "OemToAnsi" => "1",
78 "Open" => "1",
79 "OverStrikeMode" => "1",
80 "Paste" => "1",
81 "PlayMacro" => "1",
82 "PreviousWindow" => "1",
83 "ReturnToWarp" => "1",
84 "Save" => "1",
85 "SaveAs" => "1",
86 "SelectAll" => "1",
87 "SelectToBottom" => "1",
88 "SelectToTop" => "1",
89 "SelectWord" => "1",
90 "SpacesToTabs" => "1",
91 "SpacesToTabsAll" => "1",
92 "TabsToSpaces" => "1",
93 "TimeDate" => "1",
94 "ToCaps" => "1",
95 "ToggleBookMark" => "1",
96 "ToLower" => "1",
97 "Top" => "1",
98 "ToUpper" => "1",
99 "TrimTrailingSpaces" => "1",
100 "UnixMactoDos" => "1",
101 "WrapToReturn" => "1",
102 "Template" => "2",
103 "Else" => "3",
104 "EndIf" => "3",
105 "EndLoop" => "3",
106 "EndSelect" => "3",
107 "ExitLoop" => "3",
108 "IfCharIs" => "3",
109 "IfColNum" => "3",
110 "IfEof" => "3",
111 "IfFound" => "3",
112 "IfNotFound" => "3",
113 "IfSel" => "3",
114 "Loop" => "3",
115 "StartSelect" => "3",
116 "**" => "4",
117 "Ctrl+" => "4",
118 "All" => "4",
119 "ARROW" => "4",
120 "AllFiles" => "4",
121 "Backspace" => "4",
122 "DEL" => "4",
123 "DOWN" => "4",
124 "END" => "4",
125 "HOME" => "4",
126 "IgnoreCase" => "5",
127 "Key" => "4",
128 "LEFT" => "4",
129 "PGDN" => "4",
130 "PGUP" => "4",
131 "RemoveDup" => "5",
132 "RIGHT" => "4",
133 "Selected" => "4",
134 "Text" => "4",
135 "UP" => "4",
136 "SortAsc" => "5",
137 "SortDes" => "5",
138 "Find" => "6",
139 "MatchCase" => "6",
140 "MatchWord" => "6",
141 "RegExp" => "6",
142 "Replace" => "6",
143 "Select" => "6",
144 "SelectText" => "6");
145
146// Special extensions
147
148// Each category can specify a PHP function that returns an altered
149// version of the keyword.
150
151
152
153$this->linkscripts = array(
154 "1" => "donothing",
155 "2" => "donothing",
156 "3" => "donothing",
157 "4" => "donothing",
158 "5" => "donothing",
159 "6" => "donothing");
160}
161
162
163function donothing($keywordin)
164{
165 return $keywordin;
166}
167
168}?>
$BEAUT_PATH
donothing($keywordin)