/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.83 (July 02 2010)
*
* @copyright
* Copyright (C) 2004-2010 Alex Gorbatchev.
*
* @license
* Dual licensed under the MIT and GPL licenses.
*/
;(function()
{
// CommonJS
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
function Brush()
{
var CoreKeywords = ' TBMain uses byval byref declare global local dword wend cos sin type as long function not string quad ' +
' sub exit alias asciiz integer if then else step for next end wen Variant When While With double single ' +
' static value dim ReDim Preserve parse to ext return number byte Extended Int Boolean ' +
' log loge log10 str iif rnd rndf DegToRad Incr Decr Ubound In Sqr' +
' format msgbox new timer export call rgb callback TrimFull ucase lcase mcase reset ' +
' true false or and optional Function_NParams LOINT HIINT ' +
' EndIf Len Asc Val Trim Mid Repeat at Using StrPtr Join ParseCount ParseSet' +
' crlf spc nul ControlID ' +
' Begin Const ' +
' SELECT CASE DO LOOP ERR ' +
' ARRAY SCAN COLLATE ASSIGN MOD ' +
' HiResTimer_Init HiResTimer_Get HiResTimer_Get GetTickCount HiResTimer_Delta ' +
' APP_SourcePath ' +
' POINTAPI CHARRANGE ' +
' Inside Between Outside IsTrue IsFalse Stop Shift Right Left Iterate Until ' +
' LoWrd HiWrd IsPrime IFF' +
' ';
var COM_Module = ' COM_CreateObject COM_Succeeded COM_CallMethod COM_GetProperty COM_Release ' +
' ';
var Console_Module = ' Console_Write Write Console_Writeline Writeline Console_Waitkey Waitkey ' +
' Print PrintL PrintAt ' +
' Console_PrintAt Console_GetTextAttribute Console_SetTextAttribute Console_SetCursorPosition Console_ReadLine ' +
' ';
var DT_Module = ' DT_DateToSec DT_SecToDate DT_GetDate ' +
' ';
var Eval_Module = ' Evaluate Eval_String Eval_Number ' +
' ';
var FILE_Module = ' FILE_Open FILE_Load FILE_Save ' +
' ';
var OS_Module = ' OS_GetComputerName ' +
' ';
var Oxygen_Module = ' o2_basic o2_exec o2_error ' +
' ';
var UI_Module = ' MLGRID_Get MLGRID_Put MLGrid_SetSelected ' +
' Dialog CONTROL ADD label button FONT Pixels Checkbox Check ' +
' set minsize SHOW Modal Modeless DoEvents ' +
' CBMSG Handle CBHNDL CBCTLMSG CBWPARAM CBLPARAM cbctl get text State Client ' +
' Canvas Textbox ' +
' Callback_Message Callback_Control_Message Callback_Handle Callback_Handle Callback_Control ' +
' Canvas_Window Canvas_Attach Canvas_Clear Canvas_Polygon Canvas_Redraw Canvas_Width Canvas_WaitKey ' +
' Canvas_Box Canvas_Ellipse Canvas_Arc Canvas_Line Canvas_Scale Canvas_BitmapRender Canvas_GetDC ' +
' Win_GetCursorPos Win_ScreenToClient Menu PopUp ' +
' Canvas_BitmapGetFileInfo Control_SetText Win_ClientToScreen SendMessage ' +
' ';
var UIAdv_Module = ' WebBrowser_zoom ' +
' WebBrowser WebBrowser_Create WebBrowser_Busy WebBrowser_ForwardMessage ' +
' WebBrowser_GoBack WebBrowser_GoForward WebBrowser_GoHome WebBRowser_LocationURL ' +
' WebBRowser_LocationName WebBrowser_Navigate WebBrowser_Navigate2 WebBrowser_Stop ' +
' WebBrowser_Refresh WebBrowser_ReadyState WebBrowser_Zoom ' +
' ';
var TBGL_Module = ' TBGL_GetWindowKeyState TBGL_GetFrameRate TBGL_Camera TBGL_GetWindowClient TBGL_Rotate ' +
' TBGL_SetLightParameter TBGL_DrawFrame TBGL_ClearFrame TBGL_UseLighting TBGL_UseLightSource ' +
' TBGL_MouseGetPosX TBGL_MouseGetPosY TBGL_CallingWindow TBGL_UnBindPeriodicFunction ' +
' TBGL_CreateWindowEx TBGL_ShowWindow TBGL_IsWindow TBGL_ResetKeyState TBGL_DestroyWindow ' +
' TBGL_EntityGetFreeID TBGL_EntityCreateFuncSlot TBGL_EntitySetUserData TBGL_EntityEnumByDataSignature ' +
' TBGL_TexturingQuery TBGL_EvaluatePOTMatch TBGL_MakeTexture TBGL_Viewport TBGL_RenderMatrix3D ' +
' TBGL_RenderToTexture TBGL_Color TBGL_BlendFunc TBGL_RenderMatrix2D TBGL_PushStateProtect ' +
' TBGL_PushState TBGL_BindTexture TBGL_PushMatrix TBGL_Translate TBGL_CallList TBGL_PopMatrix ' +
' TBGL_PopState TBGL_PopStateProtect TBGL_EntityGetUserDataPointer TBGL_EntityTurn ' +
' TBGL_Box TBGL_CallingEntity TBGL_EntitySetColor TBGL_EntitySetAmbient ' +
' TBGL_BindCanvas TBGL_SceneCreate TBGL_EntityCreateCamera TBGL_EntitySetPos TBGL_BeginPoly TBGL_EndPoly ' +
' TBGL_TexCoord2D TBGL_BackColor TBGL_EntitySetTargetPos TBGL_NewList TBGL_EndList TBGL_Vertex TBGL_Normal ' +
' TBGL_EntityCreateDLSlot TBGL_EntityCreateSphere TBGL_EntityCreateLight TBGL_GetAsyncKeyState ' +
' TBGL_ResetMatrix TBGL_SceneRender TBGL_EntityPush TBGL_EntityGetAngleXY TBGL_CanvasBound ' +
' ';
var WMI_Module = ' WMI_GetData ' +
' ';
var SAPI_Module = ' SAPI_Speak ' +
' ';
var VBREGEXP_Module = ' VBREGEXP_New VBRegExp_SetPattern VBREGEXP_SetIgnoreCase VBRegExp_SetGlobal VBRegExp_Execute ' +
' VBMatchCollection_GetCount VBMatchCollection_GetItem VBMatch_GetFirstIndex VBMatch_Getlength ' +
' VBMatch_GetValue VBREGEXP_Release ' +
' ';
var Equates = ' WM_CLOSE WM_COMMAND WM_INITDIALOG BN_CLICKED WS_POPUP WS_VISIBLE WS_CAPTION WS_SYSMENU WS_MINIMIZEBOX ' +
' HWND_DESKTOP SW_HIDE SW_SHOW WM_LBUTTONDOWN WM_MOUSEMOVE CANVAS_FILLSTYLE_SOLID MAX_PATH ' +
' VK_ESCAPE WS_CLIPCHILDREN TAB CRLF WM_DESTROY WM_RBUTTONDOWN MF_ENABLED NULL TPM_LEFTALIGN TPM_RIGHTBUTTON TPM_RETURNCMD' +
' WS_CHILD WS_OVERLAPPEDWINDOW ' +
' ';
this.regexList = [
{ regex: /'.*$/gm, css: 'comments' }, // one line comments
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
{ regex: /^\s*#.*/gmi, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
{ regex: new RegExp(this.getKeywords(CoreKeywords), 'gmi'), css: 'corekeyword' }, // Core keyword
{ regex: new RegExp(this.getKeywords(Equates), 'gmi'), css: 'equates' }, // Equates
{ regex: new RegExp(this.getKeywords(COM_Module), 'gmi'), css: 'modulekeyword' }, // Modules keyword
{ regex: new RegExp(this.getKeywords(Console_Module), 'gmi'), css: 'modulekeyword' }, // Modules keyword
{ regex: new RegExp(this.getKeywords(DT_Module), 'gmi'), css: 'modulekeyword' }, // Modules keyword
{ regex: new RegExp(this.getKeywords(Eval_Module), 'gmi'), css: 'modulekeyword' }, // Modules keyword
{ regex: new RegExp(this.getKeywords(FILE_Module), 'gmi'), css: 'modulekeyword' }, // Modules keyword
{ regex: new RegExp(this.getKeywords(OS_Module), 'gmi'), css: 'modulekeyword' }, // Modules keyword
{ regex: new RegExp(this.getKeywords(Oxygen_Module), 'gmi'), css: 'modulekeyword' }, // Modules keyword
{ regex: new RegExp(this.getKeywords(UI_Module), 'gmi'), css: 'modulekeyword' }, // Modules keyword
{ regex: new RegExp(this.getKeywords(UIAdv_Module), 'gmi'), css: 'modulekeyword' }, // Modules keyword
{ regex: new RegExp(this.getKeywords(WMI_Module), 'gmi'), css: 'modulekeyword' }, // Modules keyword
{ regex: new RegExp(this.getKeywords(SAPI_Module), 'gmi'), css: 'modulekeyword' }, // Modules keyword
{ regex: new RegExp(this.getKeywords(TBGL_Module), 'gmi'), css: 'modulekeyword' }, // Modules keyword
{ regex: new RegExp(this.getKeywords(VBREGEXP_Module), 'gmi'), css: 'modulekeyword' } // Modules keyword
];
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
};
Brush.prototype = new SyntaxHighlighter.Highlighter();
Brush.aliases = ['thinbasic', 'tb'];
SyntaxHighlighter.brushes.Vb = Brush;
// CommonJS
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
})();