! Syntax Highlighting Patterns for VB/VBScript ! ! INSTALLATION ! ! In NEdit Version 5.0.1 and beyond, load this pattern by starting nedit with: ! ! nedit -import ! ! Then, check that the patterns were loaded correctly, and choose Save Defaults ! from the Preferences menu. The new patterns will now be incorporated into ! your own .nedit file, so the next time you start NEdit, you will no longer ! need to use -import. ! ! In version 5.0, without -import, you must edit your .nedit file by hand and ! add the contents of each resource below to the corresponding list in your ! .nedit file. Be sure to separate new entries with \n, and continue resource ! strings by escaping all newlines within a resource value with \ (backslash), ! leaving only the last line of the resource value not ending in \. ! nedit.highlightPatterns: \ VB:1:0{\n\ comments:"'":"$"::Comment::\n\ keyword:"<(On|Error|GoTo|Sub|Dim|Function|Public|Private|Attribute|End|If|Then|ElsIf|Else|Do|While|Loop)>":::Identifier::\n\ string:"""":""""::String1::\n\ modifiers:"<(And|Or|Not|As|True|False|Exit|ErrorHandler|New)>":::Identifier1::\n\ ops:"<(=|\\&|\\<\\>|\\<=|\\>=|\\<|\\>|\\+|\\-|/|\\*)>":::Keyword::\n\ numbers:"[0-9]+":::Storage Type::\n\ } nedit.languageModes: VB:.cls .frm .vbs .vba .Cls .bas::::::