00001 <?php
00002 $BEAUT_PATH = realpath(".")."/syntax_highlight/php";
00003 if (!isset ($BEAUT_PATH)) return;
00004 require_once("$BEAUT_PATH/Beautifier/HFile.php");
00005 class HFile_dxl extends HFile{
00006 function HFile_dxl(){
00007 $this->HFile();
00008
00009
00010
00011
00012
00013
00014 $this->nocase = "1";
00015 $this->notrim = "0";
00016 $this->perl = "0";
00017
00018
00019
00020 $this->colours = array("blue", "purple", "gray", "brown", "blue");
00021 $this->quotecolour = "blue";
00022 $this->blockcommentcolour = "green";
00023 $this->linecommentcolour = "green";
00024
00025
00026
00027 $this->indent = array();
00028 $this->unindent = array();
00029
00030
00031
00032 $this->stringchars = array();
00033 $this->delimiters = array("~", "!", "@", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", ".", "?");
00034 $this->escchar = "";
00035
00036
00037
00038 $this->linecommenton = array("//");
00039 $this->blockcommenton = array("/*");
00040 $this->blockcommentoff = array("*/");
00041
00042
00043
00044 $this->keywords = array(
00045 "break" => "1",
00046 "by" => "1",
00047 "change" => "1",
00048 "const" => "1",
00049 "continue" => "1",
00050 "do" => "1",
00051 "else" => "1",
00052 "for" => "1",
00053 "if" => "1",
00054 "in" => "1",
00055 "return" => "1",
00056 "then" => "1",
00057 "while" => "1",
00058 "AccessRec" => "2",
00059 "Array" => "2",
00060 "AttrDef" => "2",
00061 "AttrType" => "2",
00062 "Baseline" => "2",
00063 "Bitmap" => "2",
00064 "Buffer" => "2",
00065 "bool" => "2",
00066 "Column" => "2",
00067 "char" => "2",
00068 "Date" => "2",
00069 "DB" => "2",
00070 "DBE" => "2",
00071 "Filter" => "2",
00072 "History" => "2",
00073 "HistoryType" => "2",
00074 "int" => "2",
00075 "InPlaceEditEvent" => "2",
00076 "IPC" => "2",
00077 "Link" => "2",
00078 "Linkset" => "2",
00079 "Module" => "2",
00080 "Object" => "2",
00081 "OleAutoArgs" => "2",
00082 "OleAutoObj" => "2",
00083 "Permission" => "2",
00084 "Project" => "2",
00085 "real" => "2",
00086 "Regexp" => "2",
00087 "ScrollEvent" => "2",
00088 "ScrollSide" => "2",
00089 "Sensitivity" => "2",
00090 "Skip" => "2",
00091 "Sort" => "2",
00092 "Stat" => "2",
00093 "Stream" => "2",
00094 "string" => "2",
00095 "Template" => "2",
00096 "ToolType" => "2",
00097 "Trigger" => "2",
00098 "void" => "2",
00099 "above" => "3",
00100 "accept" => "3",
00101 "ack" => "3",
00102 "activateURL" => "3",
00103 "active" => "3",
00104 "addToolTip" => "3",
00105 "addUser" => "3",
00106 "addMenu" => "3",
00107 "after" => "3",
00108 "all" => "3",
00109 "alternative" => "3",
00110 "alternatives" => "3",
00111 "ancestors" => "3",
00112 "append" => "3",
00113 "apply" => "3",
00114 "arrow" => "3",
00115 "attribute" => "3",
00116 "attributeValue" => "3",
00117 "attributes" => "3",
00118 "background" => "3",
00119 "before" => "3",
00120 "below" => "3",
00121 "beside" => "3",
00122 "block" => "3",
00123 "box" => "3",
00124 "button" => "3",
00125 "canDelete" => "3",
00126 "canRead" => "3",
00127 "canvas" => "3",
00128 "canWrite" => "3",
00129 "centered" => "3",
00130 "charOf" => "3",
00131 "changeBars" => "3",
00132 "checkBox" => "3",
00133 "choice" => "3",
00134 "clear" => "3",
00135 "clearClipboard" => "3",
00136 "clearToolTips" => "3",
00137 "client" => "3",
00138 "clipboardIsEmpty" => "3",
00139 "clipboardIsTransient" => "3",
00140 "close" => "3",
00141 "closeProject" => "3",
00142 "color" => "3",
00143 "confirm" => "3",
00144 "confAppend" => "3",
00145 "confDeleteFile" => "3",
00146 "confMkdir" => "3",
00147 "confRead" => "3",
00148 "confRenameFile" => "3",
00149 "confWrite" => "3",
00150 "contents" => "3",
00151 "copyFile" => "3",
00152 "copyFlat" => "3",
00153 "copyHier" => "3",
00154 "cos" => "3",
00155 "create" => "3",
00156 "createString" => "3",
00157 "current" => "3",
00158 "cut" => "3",
00159 "database" => "3",
00160 "default" => "3",
00161 "delete" => "3",
00162 "deleteFile" => "3",
00163 "deselect" => "3",
00164 "destroyBitmap" => "3",
00165 "directory" => "3",
00166 "disconnect" => "3",
00167 "display" => "3",
00168 "doorsname" => "3",
00169 "double" => "3",
00170 "down" => "3",
00171 "downgrade" => "3",
00172 "draw" => "3",
00173 "drawBitmap" => "3",
00174 "du" => "3",
00175 "dxl" => "3",
00176 "edit" => "3",
00177 "editor" => "3",
00178 "ellipse" => "3",
00179 "end" => "3",
00180 "eval_" => "3",
00181 "exists" => "3",
00182 "exit_" => "3",
00183 "false" => "3",
00184 "field" => "3",
00185 "fileExists_" => "3",
00186 "fileOverwriteOK_" => "3",
00187 "fileReadable_" => "3",
00188 "fileWriteable_" => "3",
00189 "fileName" => "3",
00190 "filtering" => "3",
00191 "find" => "3",
00192 "first" => "3",
00193 "flushDeletions" => "3",
00194 "font" => "3",
00195 "formal" => "3",
00196 "full" => "3",
00197 "get" => "3",
00198 "getenv" => "3",
00199 "getSelection" => "3",
00200 "getSize" => "3",
00201 "goodFileName" => "3",
00202 "graphics" => "3",
00203 "halt" => "3",
00204 "hardDelete" => "3",
00205 "hasInPlace" => "3",
00206 "hasScrollbars" => "3",
00207 "height" => "3",
00208 "hide" => "3",
00209 "home" => "3",
00210 "identifier" => "3",
00211 "inactive" => "3",
00212 "info" => "3",
00213 "inherit" => "3",
00214 "inPlaceChoiceAdd" => "3",
00215 "inPlaceCopy" => "3",
00216 "inPlaceCut" => "3",
00217 "inPlaceGet" => "3",
00218 "inPlaceMove" => "3",
00219 "inPlacePaste" => "3",
00220 "inPlaceReset" => "3",
00221 "inPlaceSet" => "3",
00222 "inPlaceShow" => "3",
00223 "inPlaceTextHeight" => "3",
00224 "insert" => "3",
00225 "intOf" => "3",
00226 "isAdmin" => "3",
00227 "isBatch" => "3",
00228 "isDeleted" => "3",
00229 "isEdit" => "3",
00230 "isLocked" => "3",
00231 "isLockedByUser" => "3",
00232 "isNull" => "3",
00233 "isRead" => "3",
00234 "isSelected" => "3",
00235 "isShare" => "3",
00236 "isValidName" => "3",
00237 "isVisible" => "3",
00238 "isVisibleAttribute" => "3",
00239 "justify" => "3",
00240 "key" => "3",
00241 "label" => "3",
00242 "last" => "3",
00243 "lastError" => "3",
00244 "leaf" => "3",
00245 "left" => "3",
00246 "leftAligned" => "3",
00247 "length" => "3",
00248 "level" => "3",
00249 "line" => "3",
00250 "linkIndicators" => "3",
00251 "list" => "3",
00252 "load" => "3",
00253 "loadBitmap" => "3",
00254 "lock" => "3",
00255 "lower" => "3",
00256 "main" => "3",
00257 "manyToMany" => "3",
00258 "manyToOne" => "3",
00259 "margins" => "3",
00260 "match" => "3",
00261 "matches" => "3",
00262 "menuBar" => "3",
00263 "mkdir" => "3",
00264 "modified" => "3",
00265 "move" => "3",
00266 "multiList" => "3",
00267 "name" => "3",
00268 "next" => "3",
00269 "noElems" => "3",
00270 "noError" => "3",
00271 "notNull" => "3",
00272 "null" => "3",
00273 "number" => "3",
00274 "of" => "3",
00275 "off" => "3",
00276 "ok" => "3",
00277 "oleCloseAutoObject" => "3",
00278 "oleCopy" => "3",
00279 "oleCreateAutoObject" => "3",
00280 "oleCut" => "3",
00281 "oleGet" => "3",
00282 "oleInsert" => "3",
00283 "oleIsObject" => "3",
00284 "oleMethod" => "3",
00285 "olePaste" => "3",
00286 "olePut" => "3",
00287 "on" => "3",
00288 "oneToMany" => "3",
00289 "oneToOne" => "3",
00290 "open" => "3",
00291 "openProject" => "3",
00292 "opposite" => "3",
00293 "outline" => "3",
00294 "outlining" => "3",
00295 "pageBottomMargin" => "3",
00296 "pageBreakLevel" => "3",
00297 "pageChangeBars" => "3",
00298 "pageColumns" => "3",
00299 "pageFormat" => "3",
00300 "pageHeaderFooter" => "3",
00301 "pageHeight" => "3",
00302 "pageLayout" => "3",
00303 "pageLeftMargin" => "3",
00304 "pageName" => "3",
00305 "pagePortrait" => "3",
00306 "pageRepeatTitles" => "3",
00307 "pageRightMargin" => "3",
00308 "pageSize" => "3",
00309 "pageTitlePage" => "3",
00310 "pageTOCLevel" => "3",
00311 "pageTopMargin" => "3",
00312 "pageWidth" => "3",
00313 "parent" => "3",
00314 "parentOf" => "3",
00315 "pasteDown" => "3",
00316 "pasteSame" => "3",
00317 "pi" => "3",
00318 "platform" => "3",
00319 "polygon" => "3",
00320 "previous" => "3",
00321 "print" => "3",
00322 "progressCancelled" => "3",
00323 "progressMessage" => "3",
00324 "progressRange" => "3",
00325 "progressStart" => "3",
00326 "progressStep" => "3",
00327 "progressStop" => "3",
00328 "purgeObjects_" => "3",
00329 "put" => "3",
00330 "query" => "3",
00331 "radioBox" => "3",
00332 "radioButton" => "3",
00333 "raise" => "3",
00334 "random" => "3",
00335 "read" => "3",
00336 "readFile" => "3",
00337 "realise" => "3",
00338 "realize" => "3",
00339 "realOf" => "3",
00340 "rectangle" => "3",
00341 "recv" => "3",
00342 "refresh" => "3",
00343 "reject" => "3",
00344 "release" => "3",
00345 "renameFile" => "3",
00346 "return_" => "3",
00347 "richText" => "3",
00348 "right" => "3",
00349 "runLim" => "3",
00350 "save" => "3",
00351 "scroll" => "3",
00352 "scrollSet" => "3",
00353 "selected" => "3",
00354 "send" => "3",
00355 "separator" => "3",
00356 "server" => "3",
00357 "set" => "3",
00358 "setDef" => "3",
00359 "setDefaultViewForModule" => "3",
00360 "setempty" => "3",
00361 "setFocus" => "3",
00362 "setPos" => "3",
00363 "setSelection" => "3",
00364 "setSize" => "3",
00365 "setVal" => "3",
00366 "share" => "3",
00367 "show" => "3",
00368 "showDeletedModules" => "3",
00369 "showDeletedObjects" => "3",
00370 "showDeletedProjects" => "3",
00371 "showing" => "3",
00372 "sibling" => "3",
00373 "sin" => "3",
00374 "sizeof" => "3",
00375 "slider" => "3",
00376 "softDelete" => "3",
00377 "sorting" => "3",
00378 "source" => "3",
00379 "spell" => "3",
00380 "stacked" => "3",
00381 "start" => "3",
00382 "static" => "3",
00383 "statusBar" => "3",
00384 "stringOf" => "3",
00385 "switch" => "3",
00386 "sync" => "3",
00387 "tan" => "3",
00388 "target" => "3",
00389 "tempFileName" => "3",
00390 "text" => "3",
00391 "title" => "3",
00392 "today" => "3",
00393 "toggle" => "3",
00394 "toolBar" => "3",
00395 "toolBarComboAdd" => "3",
00396 "toolBarComboCount" => "3",
00397 "toolBarComboEmpty" => "3",
00398 "toolBarComboGetItem" => "3",
00399 "toolBarComboGetSelection" => "3",
00400 "toolBarComboSelect" => "3",
00401 "toolButton" => "3",
00402 "toolCombo" => "3",
00403 "toolSpacer" => "3",
00404 "toolToggle" => "3",
00405 "top" => "3",
00406 "topMost" => "3",
00407 "true" => "3",
00408 "type" => "3",
00409 "undelete" => "3",
00410 "unload" => "3",
00411 "unlockSaveSection" => "3",
00412 "unlockSaveAll" => "3",
00413 "unlockDiscardSection" => "3",
00414 "unlockDiscardAll" => "3",
00415 "up" => "3",
00416 "updateToolBars" => "3",
00417 "upper" => "3",
00418 "useraccess" => "3",
00419 "varchar" => "3",
00420 "verticalCheckBox" => "3",
00421 "verticalRadioBox" => "3",
00422 "view" => "3",
00423 "width" => "3",
00424 "write" => "3",
00425 "attrDate" => "4",
00426 "attrEnumeration" => "4",
00427 "attrInteger" => "4",
00428 "attrReal" => "4",
00429 "attrString" => "4",
00430 "attrText" => "4",
00431 "colorBlack" => "4",
00432 "colorBlue" => "4",
00433 "colorBrown" => "4",
00434 "colorCyan" => "4",
00435 "colorDarkTurquoise" => "4",
00436 "colorGreen" => "4",
00437 "colorGrey" => "4",
00438 "colorGrey77" => "4",
00439 "colorGrey82" => "4",
00440 "colorLightBlue" => "4",
00441 "colorMagenta" => "4",
00442 "colorMaroon" => "4",
00443 "colorMediumLightBlue" => "4",
00444 "colorOrange" => "4",
00445 "colorPink" => "4",
00446 "colorRed" => "4",
00447 "colorRedGrey" => "4",
00448 "colorWhite" => "4",
00449 "colorYellow" => "4",
00450 "ddbAvailable" => "4",
00451 "ddbChecked" => "4",
00452 "ddbNone" => "4",
00453 "ddbUnavailable" => "4",
00454 "ICD_DECREASE_LEVEL" => "4",
00455 "ICD_INCREASE_LEVEL" => "4",
00456 "ICD_LEVEL1" => "4",
00457 "ICD_LEVEL2" => "4",
00458 "ICD_LEVEL3" => "4",
00459 "ICD_LEVEL4" => "4",
00460 "ICD_LEVEL5" => "4",
00461 "ICD_LEVEL6" => "4",
00462 "ICD_LEVEL7" => "4",
00463 "ICD_LEVEL8" => "4",
00464 "ICD_LEVEL10" => "4",
00465 "ICD_LEVELALL" => "4",
00466 "ICD_OPEN_MODULE" => "4",
00467 "ICD_OPEN_PROJ" => "4",
00468 "inPlaceChoice" => "4",
00469 "inPlaceString" => "4",
00470 "inPlaceText" => "4",
00471 "inPlaceTextChange" => "4",
00472 "inPlaceTextFilled" => "4",
00473 "keyDelete" => "4",
00474 "keyDown" => "4",
00475 "keyEnd" => "4",
00476 "keyF1" => "4",
00477 "keyF2" => "4",
00478 "keyF3" => "4",
00479 "keyF4" => "4",
00480 "keyF5" => "4",
00481 "keyF6" => "4",
00482 "keyF7" => "4",
00483 "keyF8" => "4",
00484 "keyF9" => "4",
00485 "keyF10" => "4",
00486 "keyF11" => "4",
00487 "keyF12" => "4",
00488 "keyHelp" => "4",
00489 "keyHome" => "4",
00490 "keyInsert" => "4",
00491 "keyLeft" => "4",
00492 "keyPageDown" => "4",
00493 "keyPageUp" => "4",
00494 "keyRight" => "4",
00495 "keyUp" => "4",
00496 "logicalDefaultColor" => "4",
00497 "logical0IndicatorColor" => "4",
00498 "logical11IndicatorColor" => "4",
00499 "logical22IndicatorColor" => "4",
00500 "logical33IndicatorColor" => "4",
00501 "logical44IndicatorColor" => "4",
00502 "logical55IndicatorColor" => "4",
00503 "logical66IndicatorColor" => "4",
00504 "logical77IndicatorColor" => "4",
00505 "logical88IndicatorColor" => "4",
00506 "logical100IndicatorColor" => "4",
00507 "logicalCurrentBackgroundColor" => "4",
00508 "logicalDataTextColor" => "4",
00509 "logicalDeletedTextColor" => "4",
00510 "logicalHighIndicatorColor" => "4",
00511 "logicalInPlaceBackgroundColor" => "4",
00512 "logicalLinksInIndicatorColor" => "4",
00513 "logicalLowIndicatorColor" => "4",
00514 "logicalMediumIndicatorColor" => "4",
00515 "logicalPageBackgroundColor" => "4",
00516 "logicalReadOnlyTextColor" => "4",
00517 "logicalSelectedTextColor" => "4",
00518 "logicalTextBackgroundColor" => "4",
00519 "logicalTitleBackgroundColor" => "4",
00520 "logicalTitleTextColor" => "4",
00521 "scrollDown" => "4",
00522 "scrollPageDown" => "4",
00523 "scrollPageUp" => "4",
00524 "scrollToEnd" => "4",
00525 "scrollToHome" => "4",
00526 "scrollToPos" => "4",
00527 "scrollUp" => "4",
00528 "#include" => "5",
00529 "pragma" => "5");
00530
00531
00532
00533
00534
00535
00536
00537
00538 $this->linkscripts = array(
00539 "1" => "donothing",
00540 "2" => "donothing",
00541 "3" => "donothing",
00542 "4" => "donothing",
00543 "5" => "donothing");
00544 }
00545
00546
00547 function donothing($keywordin)
00548 {
00549 return $keywordin;
00550 }
00551
00552 }?>