////////////////////////////////////////////////////////////////////////////// // // SiebelBasic highlighter written by Juan Pablo Santos Rodríguez // Contact at: juanpablo.santos at vass dot es // // This file should help highligthing SiebelBasic (Siebel 6.00 more or less, // I guess), it's a translation from Siebel 7.0 eScript highliter so it is // possible that I've missed a few keywords during the translation, feel free // to contact me to update the file, thanks // // You can use this file as long as you don't delete the first 12 lines of // the file :-) // Language: Siebel Basic Filter: Siebel Basic files (*.sbl)|*.sbl HelpFile: CaseSensitive: 0 LineComment: ' REM BlockCommentBeg: BlockCommentEnd: IdentifierBegChars: a..z A..Z _%@. IdentifierChars: a..z A..Z _ 0..9 NumConstBegChars: 0..9 NumConstChars: 0..9 #abcdefABCDEF. EscapeChar: _ ////////////////////////////////////////////////////////////////////////////// // keyword table KeyWords1: // Funciones Abs Array Asc AscB AscW Atn Avg CBool CByte CCur CDate CDbl Cdec Choose Chr ChrB ChrW CInt CLng Command Cos Count CreateObject CSng CStr CurDir CVar CVDate CVErr Date DateAdd DateDiff DatePart DateSerial DateValue Day DDB Dir Environ EOF Err Erl Error Exp FileAttr FileDateTime FileLen Fix Format FreeFile FV GetAllStrings GetAttr GetAutoServerSettings GetObject GetSetting Hex Hour IIf IMEStatus Input InputB InputBox InStr InstB Int IPmt IsArray Is IsDate IsEmpty IsError IsMissing IsNull IsNumeric IsObject IRR LBound LCase Left LeftB Len LenB LoadPicture Loc LOF Log LTrim Mid MidB Minute MIRR Month MsgBox Now Nothing NPer NPV Null Oct Partition Pmt PPmt PV QBColor Rate RGB Right RightB Rnd RTrim Second Seek Sgn Sin SLN Space Spc Sqr StDev StDevP Str StrComp StrConv Switch Sum SYD SQLCLose SQLError SQLExecQuery SQLGetSchema SQLOpen SQLRequest SQLRetrieve SQLRetrieveToFile Tab Tan Time Timer TimeSerial TimeValue Trim TypeName Typeof UBound UCase Val Var VarP VarType Weekday Year // Eventos AccessKeyPress AfterAddFile AfterChangeFileName AfterCloseFile AfterColEdit AfterColUpdate AfterDelete AfterInsert AfterLabelEdit AfterRemoveFile AfterUpdate AfterWriteFile AmbienChanged ApplyChanges Associate AsyncReadComplete AxisActivated AxisLabelActivated AxisLabelSelected AxisLabelUpdated AxisSelected AxisTitleActivated AxisTitleSelected AxisTitleUpdated AxisUpdated BeforeClick BeforeColEdit BeforeColUpdate BeforeConnect BeforeDelete BeforeInsert BeforeLabelEdit BeforeLoadFile BeforeUpdate ButtonClick ButtonCompleted ButtonGotFocus ButtonLostFocus Change ChartActivated ChartSelected ChartUpdated Click ColEdit Collapse ColResize ColumnClick Compare ConfigChageCancelled ConfigChanged ConnectionRequest DataArrival DataChanged DataUpdated DblClick Deactivate DeviceArrival DeviceOtherEvent DeviceQueryRemove DeviceQueryRemoveFailed DeviceRemoveComplete DeviceRemovePending DevModeChange Disconnect DisplayChanged Dissociate DoGetNewFileName Done DonePainting DownClick DragDrop DragOver DropDown EditProperty EnterCell EnterFocus ExitFocus Expand FootnoteActivated FootnoteSelected FootnoteUpdated GotFocus HeadClick InfoMessage Initialize IniProperties ItemActivated ItemAdded ItemCheck ItemClick ItemReloaded ItemRemoved ItemRenamed ItemSeletected KeyDown KeyPress KeyUp LeaveCell LegendActivated LegendSelected LegendUpdated LinkClose LinkError LinkNotify LinkOpen Load LostFocus MouseDown MouseMove MouseUp NodeClick ObjectMove OLECompleteDrag OLEDragDrop OLEDragOver OLEGiveFeedback OLESetData OLEStartDrag OnAddNew OnComm Paint PanelClick PanelDblClick PathChange PatternChange PlotActivated PlotSelected PlotUpdated PointActivated PointLabelActivated PointLabelSelected PointLabelUpdated PointSelected PointUpdated PowerQuerySuspend PowerResume PowerStatusChanged PowerSuspend QueryChangeConfig QueryComplete QueryCompleted QueryTimeout QueryUnload ReadProperties Reposition RequestChangeFileName RequestWriteFile Resize ResultsChanged RowColChange RowCurrencyChange RowResize RowStatusChanged SelChange SelectionChanged SendComplete SendProgress SeriesActivated SeriesSelected SeriesUpdated SettingChanged SplitChange StateChanged StatusUpdate SysColorsChanged Terminate TimeChanged TitleActivated TitleSelected TitleActivated UnboundAddData UnboundDeleteRow UnboundGetRelativeBookmark UnboundReadData UnboundWriteData Unload UpClick Updated Validate ValidationError WillAssociate WillChangeData WillDissociate WillExecute WillUpdateRows WriteProperties Applet_ChangeFieldValue Applet_ChangeRecord Applet_InvokeMethod Applet_PreInvokeMethod Application_Close Application_InvokeMethod Application_Navigate Application_PreInvokeMethod Application_PreNavigate Application_Start BusComp_Associate BusComp_ChangeRecord BusComp_CopyRecord BusComp_DeleteRecord BusComp_InvokeMethod BusComp_NewRecord BusComp_PreAssociate BusComp_PreCopyRecord BusComp_PreDeleteRecord BusComp_PreGetFieldValue BusComp_PreInvokeMethod BusComp_PreNewRecord BusComp_PreQuery BusComp_PreSetFieldValue BusComp_PreWriteRecord BusComp_Query BusComp_SetFieldValue BusComp_WriteRecord Service_InvokeMethod Service_PreCanInvokeMethod Service_PreInvokeMethod WebApplet_InvokeMethod WebApplet_PreInvokeMethod WebApplet_Load WebApplet_ShowControl WebApplet_ShowListColumn WebApplet_PreCanInvoke KeyWords2: // Métodos .Accept .Activate .Add .AddCustom .AddFile .AddFromFile .AddFromTemplate .AddItem .AddNew .AddToAddInToolbar .AddToolboxProgID .Append .AppendChunk .Arrange .Assert .AsyncRead .BatchUpdate .BeginTrans .Bind .Cancel .CancelAsyncRead .CancelBatch .CancelUpdate .CanPropertyChange .CaptureImage .CellText .CellValue .Circle .Clear .ClearFields .ClearSel .ClearSelCols .Clone .Close .Cls .ColContaining .ColumnSize .CommitTrans .CompactDatabase .Compose .Connect .Copy .CopyQueryDef .CreateDatabase .CreateDragImage .CreateEmbed .CreateField .CreateGroup .CreateIndex .CreateLink .CreatePreparedStatement .CreatePropery .CreateQuery .CreateQueryDef .CreateRelation .CreateTableDef .CreateUser .CreateWorkspace .Customize .Delete .DeleteColumnLabels .DeleteColumns .DeleteRowLabels .DeleteRows .DoVerb .Drag .Draw .Edit .EditCopy .EditPaste .EndDoc .EnsureVisible .EstablishConnection .Execute .ExtractIcon .Fetch .FetchVerbs .Files .FillCache .Find .FindFirst .FindItem .FindLast .FindNext .FindPrevious .Forward .GetBookmark .GetChunk .GetClipString .GetData .GetFirstVisible .GetFormat .GetHeader .GetLineFromChar .GetNumTicks .GetRows .GetSelectedPart .GetText .GetVisibleCount .GoBack .GoForward .Hide .HitTest .HoldFields .Idle .InitializeLabels .InsertColumnLabels .InsertColumns .InsertObjDlg .InsertRowLabels .InsertRows .Item .KillDoc .Layout .Line .LinkExecute .LinkPoke .LinkRequest .LinkSend .Listen .LoadFile .LoadResData .LoadResPicture .LoadResString .LogEvent .MakeCompileFile .MakeReplica .MoreResults .Move .MoveData .MoveFirst .MoveLast .MoveNext .MovePrevious .Name .NavigateTo .NewPage .NewPassword .NextRecordset .OLEDrag .OnAddinsUpdate .OnConnection .OnDisconnection .OnStartupComplete .Open .OpenConnection .OpenDatabase .OpenQueryDef .OpenRecordset .OpenResultset .OpenURL .Overlay .PaintPicture .Paste .PastSpecialDlg .PeekData .Play .Point .PopulatePartial .PopupMenu .Print .PrintForm .PropertyChanged .PSet .Quit .Raise .RandomDataFill .RandomFillColumns .RandomFillRows .rdoCreateEnvironment .rdoRegisterDataSource .ReadFromFile .ReadProperty .Rebind .ReFill .Refresh .RefreshLink .RegisterDatabase .Reload .Remove .RemoveAddInFromToolbar .RemoveItem .Render .RepairDatabase .Reply .ReplyAll .Requery .ResetCustom .ResetCustomLabel .ResolveName .RestoreToolbar .Resync .Rollback .RollbackTrans .RowBookmark .RowContaining .RowTop .Save .SaveAs .SaveFile .SaveToFile .SaveToolbar .SaveToOle1File .Scale .ScaleX .ScaleY .Scroll .Select .SelectAll .SelectPart .SelPrint .Send .SendData .Set .SetAutoServerSettings .SetData .SetFocus .SetOption .SetSize .SetText .SetViewport .Show .ShowColor .ShowFont .ShowHelp .ShowOpen .ShowPrinter .ShowSave .ShowWhatsThis .SignOff .SignOn .Size .Span .SplitContaining .StartLabelEdit .StartLogging .Stop .Synchronize .Text .TextHeight .TextWidth .ToDefaults .TwipsToChartPart .TypeByChartType .Update .UpdateControls .UpdateRecord .UpdateRow .Upto .Value .WhatsThisMode .WriteProperty // Órdenes As AppActivate AllView Base Beep Call CancelOperation CatalogView Case ChDir ChDrive Close Const Compare ContinueOperation ContactView Date Declare DefBool DefByte DefCur DefDate DefDbl DefDec DefInt DefLng DefObj DefSng DefStr Deftype DefVar DeleteSetting Dim Do Double DoEvents Else ElseIf End Enum Erase Err Error Event Exit Explicit FileCopy Float For ForEach Function ForwardBackward ForwardOnly Get Global GoSub GoTo GroupView If Implements Integer Input Kill Let LineInput Lock Loop Lset Long Like Me Mid MkDir ManagerView Name New Next NewAfter NewAfterCopy NewBefore NewBeforeCopy NoneSetView Object OnError On Open Option OrganizationView PersonalView Private Print Property Public Put RaiseEvent Randomize ReDim Rem Reset Resume Return RmDir RSet SavePicture SaveSetting SendKeys SetAttr Single Static Sub String Select Stop Set SetAttr SalesRepView SubOrganizationView Then Type Time Unlock Variant Wend While Width With Write KeyWords3: // Palabras reservadas Siebel Basic .ActivateField .ActiveApplet .ActiveBusComp .ActiveBusObject .ActiveControl .ActivateMultipleFields .ActiveViewName .AddChild .Associate .ActiveMode .Attach .Applet .BusComp .BusObject .ClearToQuery .Copy .CurrencyCode Clipboard .CreateSiebelAppObject .DeactivateFields .DeleteRecord .Detach .EnableExceptions .ExecuteQuery .ExecuteQuery2 .FirstRecord .FindActiveXControl .FindControl .FindApplet .GetAssocBusComp .GetBusComp .GetBusObject .GetChild .GetChildCount .GetFieldValue .GetFirstProperty .GetFormattedFieldValue .GetLastErrCode .GetLastErrText .GetMultipleFieldValues .GetMVGBusComp .GetNamedSearch .GetNextProperty .GetPicklistBusComp .GetProperty .GetProfileAttr .GetProperty .GetPropertyCount .GetSearchExpr .GetSearchSpec .GetService .GetSharedGlobal .GetType .GetUserProperty .GetValue .GetViewMode .GotoView .InsertChildAt .InvokeMethod .LastRecord .Login .LoginId .LoginName .LookUpMessage .LoadObjects .Logoff .Name .NewPropertySet .NewRecord .NextRecord .NextSelected .ParentBusComp .Pick .PositionId .PositionName .PostChanges .PreviousRecord .PropertyExists .RaiseError .RaiseErrorText .RefineQuery .RemoveChild .RemoveProperty .Reset .Release .SetFieldValue .SetFormattedFieldValue .SetMultipleFieldValues .SetNamedSearch .SetPositionId .SetPositionName .SetPositionId .SetProfileAttr .SetProperty .SetSearchExpr .SetSearchSpec .SetSharedGlobal .SetSortSpec .SetType .SetUserProperty .SetValue .SetViewMode .ShowStatus SendKeys Shell TheApplication .TheApplication .Trace .TraceOff .TraceOn .UndoRecord .ViewMode .WriteRecord ////////////////////////////////////////////////////////////////////////////// StringBegChar: " StringEndChar: " MultilineStrings: 0 UsePreprocessor: 0 CurrLineHighlighted: 1 ////////////////////////////////////////////////////////////////////////////// // colors // note: first value is foreground, second is background color // and third (optional) represents font attribute: // B - bold // I - italic // U - underline // S - strike out // attributes can be combined: eg. B or BI // as value, it could be used any standard windows color: // clBlack, clMaroon, clGreen, clOlive, clNavy, // clPurple, clTeal, clGray, clSilver, clRed, clLime, // clYellow, clBlue, clFuchsia, clAqua, clLtGray, // clDkGray, clWhite, clScrollBar, clBackground, // clActiveCaption, clInactiveCaption, clMenu, clWindow, // clWindowFrame, clMenuText, clWindowText, clCaptionText, // clActiveBorder, clInactiveBorder, clAppWorkSpace, // clHighlight, clHighlightText, clBtnFace, clBtnShadow, // clGrayText, clBtnText, clInactiveCaptionText, // clBtnHighlight, cl3DDkShadow, cl3DLight, clInfoText, // clInfoBk // as value, it could be used hex numeric constant too: // $BBGGRR - BB: blue, GG: green, RR: red, eg: $FF6A00 SpaceCol: clWindowText clWindow Keyword1Col: clGreen clWindow B Keyword2Col: clNavy clWindow B Keyword3Col: clOlive clWindow B IdentifierCol: clNavy clWindow CommentCol: clGray clWindow I NumberCol: clRed clWindow StringCol: clMaroon clWindow SymbolCol: clGray clWindow PreprocessorCol: clBlue clWindow SelectionCol: clWhite clNavy CurrentLineCol: clBlack clWindow OverrideTxtFgColor: 0 BlockAutoindent: 1 BlockBegStr: ( BlockEndStr: ) MatchedBracesCol: clRed clWindow