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_framescript extends HFile{
00006 function HFile_framescript(){
00007 $this->HFile();
00008
00009
00010
00011
00012
00013
00014 $this->nocase = "0";
00015 $this->notrim = "0";
00016 $this->perl = "0";
00017
00018
00019
00020 $this->colours = array("blue", "purple", "gray", "brown", "blue", "purple");
00021 $this->quotecolour = "blue";
00022 $this->blockcommentcolour = "green";
00023 $this->linecommentcolour = "green";
00024
00025
00026
00027 $this->indent = array("Else");
00028 $this->unindent = array("EndIf", "EndLoop", "EndEvent", "EndSub");
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 "Add" => "1",
00046 "Apply" => "1",
00047 "Clear" => "1",
00048 "Close" => "1",
00049 "Copy" => "1",
00050 "Cut" => "1",
00051 "Delete" => "1",
00052 "DialogBox" => "1",
00053 "Display" => "1",
00054 "Else" => "1",
00055 "EndEvent" => "1",
00056 "EndIf" => "1",
00057 "EndLoop" => "1",
00058 "EndSub" => "1",
00059 "Event" => "1",
00060 "Execute" => "1",
00061 "Find" => "1",
00062 "Generate" => "1",
00063 "Get" => "1",
00064 "If" => "1",
00065 "Import" => "1",
00066 "Install" => "1",
00067 "LeaveLoop" => "1",
00068 "LeaveSub" => "1",
00069 "Loop" => "1",
00070 "MsgBox" => "1",
00071 "New" => "1",
00072 "Open" => "1",
00073 "Paste" => "1",
00074 "Print" => "1",
00075 "Quit" => "1",
00076 "Read" => "1",
00077 "Remove" => "1",
00078 "Replace" => "1",
00079 "Return" => "1",
00080 "Run" => "1",
00081 "Save" => "1",
00082 "Select" => "1",
00083 "Session" => "1",
00084 "Straddle" => "1",
00085 "Sub" => "1",
00086 "Uninstall" => "1",
00087 "Update" => "1",
00088 "Write" => "1",
00089 "Book" => "2",
00090 "BookFiles" => "2",
00091 "ChangeBars" => "2",
00092 "CommandObject" => "2",
00093 "Document" => "2",
00094 "File" => "2",
00095 "Formats" => "2",
00096 "FrameCommand" => "2",
00097 "HyperText" => "2",
00098 "Integer" => "2",
00099 "Member" => "2",
00100 "Menu" => "2",
00101 "MenuItemSeparator" => "2",
00102 "MenuObject" => "2",
00103 "MenuSepObject" => "2",
00104 "Metric" => "2",
00105 "MetricList" => "2",
00106 "Object" => "2",
00107 "PageLayout" => "2",
00108 "Property" => "2",
00109 "PropertyList" => "2",
00110 "QuickKeys" => "2",
00111 "Real" => "2",
00112 "Script" => "2",
00113 "String" => "2",
00114 "StringList" => "2",
00115 "Table" => "2",
00116 "TableCells" => "2",
00117 "TableCols" => "2",
00118 "TableColumns" => "2",
00119 "TableRows" => "2",
00120 "Text" => "2",
00121 "TextFile" => "2",
00122 "TextInsetContents" => "2",
00123 "TextList" => "2",
00124 "TextLoc" => "2",
00125 "TextProperties" => "2",
00126 "TextRange" => "2",
00127 "UIntList" => "2",
00128 "Var" => "2",
00129 "AddTo" => "3",
00130 "Backward" => "3",
00131 "BodyRows" => "3",
00132 "BookObject" => "3",
00133 "BottomMargin" => "3",
00134 "BottomRow" => "3",
00135 "Button" => "3",
00136 "Button3Label" => "3",
00137 "Button4Label" => "3",
00138 "Cancel" => "3",
00139 "CellObject" => "3",
00140 "CharFmt" => "3",
00141 "CheckBox1" => "3",
00142 "CheckBox1Label" => "3",
00143 "CheckBox2" => "3",
00144 "CheckBox2Label" => "3",
00145 "CheckBox3" => "3",
00146 "CheckBox3Label" => "3",
00147 "CheckBox4" => "3",
00148 "CheckBox4Label" => "3",
00149 "Color" => "3",
00150 "ColumnGap" => "3",
00151 "Command" => "3",
00152 "CutTblCells" => "3",
00153 "Destpage" => "3",
00154 "Direction" => "3",
00155 "Directory" => "3",
00156 "DocObject" => "3",
00157 "DontApplyAllRows" => "3",
00158 "DontDeleteHiddenText" => "3",
00159 "Edit1" => "3",
00160 "Edit2" => "3",
00161 "Edit3" => "3",
00162 "EndPos" => "3",
00163 "EventProc" => "3",
00164 "FooterRows" => "3",
00165 "ForEach" => "3",
00166 "Format" => "3",
00167 "From" => "3",
00168 "FromDocObject" => "3",
00169 "FromString" => "3",
00170 "HeaderRows" => "3",
00171 "Height" => "3",
00172 "IgnoreMods" => "3",
00173 "In" => "3",
00174 "Incr" => "3",
00175 "Init" => "3",
00176 "InitVal" => "3",
00177 "InitValue" => "3",
00178 "InObject" => "3",
00179 "InRange" => "3",
00180 "InsertBelowRight" => "3",
00181 "InString" => "3",
00182 "Interactive" => "3",
00183 "Invisible" => "3",
00184 "IOType" => "3",
00185 "Label" => "3",
00186 "Label1" => "3",
00187 "Label2" => "3",
00188 "Label3" => "3",
00189 "Landscape" => "3",
00190 "LeftCol" => "3",
00191 "LeftInsideMargin" => "3",
00192 "List" => "3",
00193 "LoopVar" => "3",
00194 "LowerCase" => "3",
00195 "MarkerType" => "3",
00196 "MasterPage" => "3",
00197 "Mode" => "3",
00198 "Name" => "3",
00199 "NewVar" => "3",
00200 "NoCase" => "3",
00201 "Number" => "3",
00202 "NumCols" => "3",
00203 "NumRows" => "3",
00204 "Offset" => "3",
00205 "ParentObject" => "3",
00206 "Portrait" => "3",
00207 "Prefix" => "3",
00208 "PrevObject" => "3",
00209 "Prompt" => "3",
00210 "PropertyName" => "3",
00211 "Properties" => "3",
00212 "PropertyValue" => "3",
00213 "RemoveChars" => "3",
00214 "RemoveLeading" => "3",
00215 "RemoveTrailing" => "3",
00216 "ReplaceCells" => "3",
00217 "ReturnPos" => "3",
00218 "ReturnStatus" => "3",
00219 "ReturnString" => "3",
00220 "ReturnRange" => "3",
00221 "Returns" => "3",
00222 "Reverse" => "3",
00223 "Rewind" => "3",
00224 "RightCol" => "3",
00225 "RightOutsideMargin" => "3",
00226 "RowObject" => "3",
00227 "ScrollTo" => "3",
00228 "SelectTable" => "3",
00229 "ShortCut" => "3",
00230 "SidedNess" => "3",
00231 "SkipStep" => "3",
00232 "Sourcepage" => "3",
00233 "Start" => "3",
00234 "StartCol" => "3",
00235 "StartPos" => "3",
00236 "Suffix" => "3",
00237 "TableObject" => "3",
00238 "Template" => "3",
00239 "Title" => "3",
00240 "Title2" => "3",
00241 "To" => "3",
00242 "TopMargin" => "3",
00243 "TopRow" => "3",
00244 "Type" => "3",
00245 "UnanchoredFrame" => "3",
00246 "Units" => "3",
00247 "Until" => "3",
00248 "UpperCase" => "3",
00249 "Value" => "3",
00250 "Visible" => "3",
00251 "VisibleOnly" => "3",
00252 "When" => "3",
00253 "While" => "3",
00254 "WholeWord" => "3",
00255 "Width" => "3",
00256 "With" => "3",
00257 "AFrame" => "4",
00258 "AlertUserAboutFailure" => "4",
00259 "Append" => "4",
00260 "Arc" => "4",
00261 "AutoBackupOnSave" => "4",
00262 "BeefyDoc" => "4",
00263 "BodyPage" => "4",
00264 "BookComponent" => "4",
00265 "BookFileMenu" => "4",
00266 "BookIsInUse" => "4",
00267 "CharacterFormat" => "4",
00268 "CharPropsChange" => "4",
00269 "Cell" => "4",
00270 "CellSeparator" => "4",
00271 "ClosedDocs" => "4",
00272 "CombinedFonts" => "4",
00273 "Cond" => "4",
00274 "CondFmt" => "4",
00275 "ConditionFormat" => "4",
00276 "DisallowBookDoc" => "4",
00277 "DisallowBookMif" => "4",
00278 "DisallowDoc" => "4",
00279 "DisallowFilterTypes" => "4",
00280 "DisallowGraphicTypes" => "4",
00281 "DisallowMacEditions" => "4",
00282 "DisallowMif" => "4",
00283 "DisallowPlainText" => "4",
00284 "DisallowSgml" => "4",
00285 "Doc" => "4",
00286 "DontNotifyApiClients" => "4",
00287 "EditMenu" => "4",
00288 "Ellipse" => "4",
00289 "Everything" => "4",
00290 "FileIsGraphic" => "4",
00291 "FileIsInUse" => "4",
00292 "FileIsMakerDoc" => "4",
00293 "FileIsOldVersion" => "4",
00294 "FileIsSgmlDoc" => "4",
00295 "FileIsStructured" => "4",
00296 "FileIsText" => "4",
00297 "FileMenu" => "4",
00298 "FilterFormatId" => "4",
00299 "FitGraphicInSelectedRect" => "4",
00300 "Flow" => "4",
00301 "FlowBegin" => "4",
00302 "FlowEnd" => "4",
00303 "Fn" => "4",
00304 "FnAnchor" => "4",
00305 "Font" => "4",
00306 "FontChangedMetric" => "4",
00307 "FontNotFoundInCatalog" => "4",
00308 "FontNotFoundInDoc" => "4",
00309 "ForceImportAsText" => "4",
00310 "ForceOpenAsText" => "4",
00311 "ForceUpdate" => "4",
00312 "FormatImportedText" => "4",
00313 "FormatMenu" => "4",
00314 "Formatting" => "4",
00315 "FrameAnchor" => "4",
00316 "GraphicDpi" => "4",
00317 "Group" => "4",
00318 "HowToImport" => "4",
00319 "Hyphenating" => "4",
00320 "ImportFlowPageSpace" => "4",
00321 "ImportFlowTag" => "4",
00322 "ImportTblTag" => "4",
00323 "Inset" => "4",
00324 "Internal" => "4",
00325 "LanguageNotAvailable" => "4",
00326 "LeaveHeadingRowsEmpty" => "4",
00327 "Line" => "4",
00328 "LineBegin" => "4",
00329 "LineEnd" => "4",
00330 "LockCantBeReset" => "4",
00331 "MakeIconic" => "4",
00332 "MakePageCount" => "4",
00333 "MakeVisible" => "4",
00334 "ManualUpdate" => "4",
00335 "Marker" => "4",
00336 "MarkerAnchor" => "4",
00337 "Math" => "4",
00338 "ModDateChanged" => "4",
00339 "NameStripe" => "4",
00340 "NumCellSeparators" => "4",
00341 "NumColumns" => "4",
00342 "OpenDocs" => "4",
00343 "OpenDocViewOnly" => "4",
00344 "OpenFileNotWritable" => "4",
00345 "OpenId" => "4",
00346 "Page" => "4",
00347 "PageBegin" => "4",
00348 "PageEnd" => "4",
00349 "ParagraphFormat" => "4",
00350 "Pgf" => "4",
00351 "PgfBegin" => "4",
00352 "PgfEnd" => "4",
00353 "PgfFmt" => "4",
00354 "Polygon" => "4",
00355 "Polyline" => "4",
00356 "ReadOnly" => "4",
00357 "Rectangle" => "4",
00358 "ReferencePage" => "4",
00359 "RefFileNotFound" => "4",
00360 "RefPage" => "4",
00361 "RemoveExceptions" => "4",
00362 "RemoveManualPageBreaks" => "4",
00363 "RemoveOverrides" => "4",
00364 "RemovePageBreaks" => "4",
00365 "ResetEquationSettings" => "4",
00366 "ResetRefFrames" => "4",
00367 "RestartPgfNums" => "4",
00368 "RetainNameStripe" => "4",
00369 "RoundRect" => "4",
00370 "Row" => "4",
00371 "RulingFmt" => "4",
00372 "RulingFormat" => "4",
00373 "SaveFileNotWritable" => "4",
00374 "SaveTextExtraBlankLineAtEOP" => "4",
00375 "SaveTextTblSetting" => "4",
00376 "ShowBrowser" => "4",
00377 "ShowSaveTextDialog" => "4",
00378 "SubCol" => "4",
00379 "SubColBegin" => "4",
00380 "SubColEnd" => "4",
00381 "TableFormat" => "4",
00382 "Tbl" => "4",
00383 "TblAnchor" => "4",
00384 "TblFmt" => "4",
00385 "TblNumHeadingRows" => "4",
00386 "TextFrameBegin" => "4",
00387 "TextFrameEnd" => "4",
00388 "TextInsetBegin" => "4",
00389 "TextInsetEnd" => "4",
00390 "TextInsetName" => "4",
00391 "TextFrame" => "4",
00392 "Textline" => "4",
00393 "TextInset" => "4",
00394 "TiApiClient" => "4",
00395 "TreatParaAsRow" => "4",
00396 "UNIXpermissions" => "4",
00397 "UpdateBrowserDirectory" => "4",
00398 "UpdateFRVList" => "4",
00399 "UpdateXRefs" => "4",
00400 "UseAutoSaveFile" => "4",
00401 "UseDefaultUNIXpermissions" => "4",
00402 "UseMainFlow" => "4",
00403 "UseRecoverFile" => "4",
00404 "VarBegin" => "4",
00405 "VarEnd" => "4",
00406 "VarFmt" => "4",
00407 "Variable" => "4",
00408 "Variables" => "4",
00409 "VariableFormat" => "4",
00410 "WriteOnly" => "4",
00411 "XRef" => "4",
00412 "XRefBegin" => "4",
00413 "XRefEnd" => "4",
00414 "XRefFmt" => "4",
00415 "XRefFormat" => "4",
00416 "XRefs" => "4",
00417 "!BookMainMenu" => "4",
00418 "!MakerMainMenu" => "4",
00419 "!QuickMakerMainMenu" => "4",
00420 "!ViewOnlyMenu" => "4",
00421 "+" => "5",
00422 "-" => "5",
00423 "*" => "5",
00424 "//" => "5",
00425 "/" => "5",
00426 "=" => "5",
00427 ">" => "5",
00428 "<" => "5",
00429 "and" => "5",
00430 "not" => "5",
00431 "or" => "5",
00432 "BackSlash" => "6",
00433 "CHARCR" => "6",
00434 "CHARLF" => "6",
00435 "CHARTAB" => "6",
00436 "ClientDir" => "6",
00437 "ErrorCode" => "6",
00438 "ErrorMsg" => "6",
00439 "fslVersionMajor" => "6",
00440 "fslVersionMinor" => "6",
00441 "MainScript" => "6",
00442 "QUOTE" => "6",
00443 "ThisScript" => "6");
00444
00445
00446
00447
00448
00449
00450
00451
00452 $this->linkscripts = array(
00453 "1" => "donothing",
00454 "2" => "donothing",
00455 "3" => "donothing",
00456 "4" => "donothing",
00457 "5" => "donothing",
00458 "6" => "donothing");
00459 }
00460
00461
00462 function donothing($keywordin)
00463 {
00464 return $keywordin;
00465 }
00466
00467 }?>