JGCSCS 4 VBScript *.vbs JGsoft support@editpadpro.com http://www.editpadpro.com/ http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/dd5dc02a-71e4-412b-8b30-9cc2d3d5e6fb.asp TRUE ' 0 4 Rem VBScript example Public Sub Test Number = 1234; String = "abcdef"; Date = #2005/05/19# End Sub 0 FALSE 12 String The closing " is optional, so unterminated strings are colored as well "[^"\r\n]++(?:"c?)? TRUE FALSE 9 0 0 FALSE Date Closing # is optional, so unterminated dates are colored as well #[^#\r\n]*+#? FALSE FALSE 18 0 0 FALSE Comment '.*+ FALSE FALSE 5 0 0 TRUE Comment \brem\b.*+ TRUE FALSE 5 0 0 TRUE Reserved word (?<=[ \t]|^)(?:Call|Case|Class|Const|Default|Dim|Do|Each|Else|ElseIf|Empty|End|Erase|Error|Execute|Exit|False|For|Function|If|In|Loop|New|Next|Nothing|Null|On|Option +Explicit|Private|Property +[GLS]et|Public|Randomize|ReDim|Resume|Select|Set|Step|Stop|Sub|Then|To|True|Until|Wend|While|With)(?=[ \t]|$) TRUE FALSE 7 0 0 FALSE Built-in functions (?<=[ \t,]|^)(?:Abs|andTrim|Array|Asc|Atn|CBool|CByte|CCur|CDate|CDbl|Chr|CInt|CLng|Conversions|Cos|CreateObject|CSng|CStr|Date|DateAdd|DateDiff|DatePart|DateSerial|DateValue|Day|DerivedMath|Escape|Eval|Exp|Filter|Fix|FormatCurrency|FormatDateTime|FormatNumber|FormatPercent|GetLocale|GetObject|GetRef|Hex|Hour|InputBox|InStr|InStrRev|Int|IsArray|IsDate|IsEmpty|IsNull|IsNumeric|IsObject|Join|LBound|LCase|Left|Len|LoadPicture|Log|LTrim|Maths|Mid|Minute|Month|MonthName|MsgBox|Now|Oct|Replace|RGB|Right|Rnd|Round|RTrim|ScriptEngine|ScriptEngineBuildVersion|ScriptEngineMajorVersion|ScriptEngineMinorVersion|Second|SetLocale|Sgn|Sin|Space|Split|Sqr|StrComp|String|StrReverse|Tan|Time|Timer|TimeSerial|TimeValue|TypeName|UBound|UCase|Unescape|VarType|Weekday|WeekdayName|Year)(?=[ \t,]|$) TRUE FALSE 8 0 0 FALSE Integer \b[0-9]++[%&SIL]? TRUE FALSE 10 0 0 FALSE Real \b(?:[0-9]++)?\.?[0-9]+(?:e[+-]?[0-9]+)?[@!#FRD]? FALSE FALSE 10 0 0 FALSE Hex number &H[0-9A-F]++[SIL%&]? TRUE FALSE 10 0 0 FALSE Octal number &O[0-7]++[SIL%&]? TRUE FALSE 10 0 0 FALSE Operator [*+-/\^&<=>]++ FALSE FALSE 13 0 0 FALSE Bracket [()]++ FALSE FALSE 17 0 0 FALSE 4 ( ) TRUE 3 [ ] TRUE 3 { } TRUE 3 " " FALSE 2 0