1 | 1 | simandl | <?php |
2 | | | /************************************************************************************* |
3 | | | * vbnet.php |
4 | | | * --------- |
5 | | | * Author: Alan Juden (alan@judenware.org) |
6 | | | * Copyright: (c) 2004 Alan Juden, Nigel McNie (http://qbnz.com/highlighter) |
7 | 3 | simandl | * Release Version: 1.0.8.3 |
8 | 1 | simandl | * Date Started: 2004/06/04 |
9 | | | * |
10 | | | * VB.NET language file for GeSHi. |
11 | | | * |
12 | | | * CHANGES |
13 | | | * ------- |
14 | | | * 2004/11/27 (1.0.0) |
15 | | | * - Initial release |
16 | | | * |
17 | | | * TODO (updated 2004/11/27) |
18 | | | * ------------------------- |
19 | | | * |
20 | | | ************************************************************************************* |
21 | | | * |
22 | | | * This file is part of GeSHi. |
23 | | | * |
24 | | | * GeSHi is free software; you can redistribute it and/or modify |
25 | | | * it under the terms of the GNU General Public License as published by |
26 | | | * the Free Software Foundation; either version 2 of the License, or |
27 | | | * (at your option) any later version. |
28 | | | * |
29 | | | * GeSHi is distributed in the hope that it will be useful, |
30 | | | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
31 | | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
32 | | | * GNU General Public License for more details. |
33 | | | * |
34 | | | * You should have received a copy of the GNU General Public License |
35 | | | * along with GeSHi; if not, write to the Free Software |
36 | | | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
37 | | | * |
38 | | | ************************************************************************************/ |
39 | | | |
40 | | | $language_data = array ( |
41 | | | 'LANG_NAME' => 'vb.net', |
42 | | | 'COMMENT_SINGLE' => array(1 => "'"), |
43 | | | 'COMMENT_MULTI' => array(), |
44 | | | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, |
45 | | | 'QUOTEMARKS' => array('"'), |
46 | | | 'ESCAPE_CHAR' => '', |
47 | | | 'KEYWORDS' => array( |
48 | | | 1 => array( |
49 | | | '3DDKSHADOW', '3DHIGHLIGHT', '3DLIGHT', 'ABORT', 'ABORTRETRYIGNORE', 'ACTIVEBORDER', |
50 | | | 'ACTIVETITLEBAR', 'ALIAS', 'APPLICATIONMODAL', 'APPLICATIONWORKSPACE', 'ARCHIVE', |
51 | | | 'BACK', 'BINARYCOMPARE', 'BLACK', 'BLUE', 'BUTTONFACE', 'BUTTONSHADOW', 'BUTTONTEXT', |
52 | | | 'CANCEL', 'CDROM', 'CR', 'CRITICAL', 'CRLF', 'CYAN', 'DEFAULT', 'DEFAULTBUTTON1', |
53 | | | 'DEFAULTBUTTON2', 'DEFAULTBUTTON3', 'DESKTOP', 'DIRECTORY', 'EXCLAMATION', 'FALSE', |
54 | | | 'FIXED', 'FORAPPENDING', 'FORMFEED', 'FORREADING', 'FORWRITING', 'FROMUNICODE', |
55 | | | 'GRAYTEXT', 'GREEN', 'HIDDEN', 'HIDE', 'HIGHLIGHT', 'HIGHLIGHTTEXT', 'HIRAGANA', |
56 | | | 'IGNORE', 'INACTIVEBORDER', 'INACTIVECAPTIONTEXT', 'INACTIVETITLEBAR', 'INFOBACKGROUND', |
57 | | | 'INFORMATION', 'INFOTEXT', 'KATAKANALF', 'LOWERCASE', 'MAGENTA', 'MAXIMIZEDFOCUS', |
58 | | | 'MENUBAR', 'MENUTEXT', 'METHOD', 'MINIMIZEDFOCUS', 'MINIMIZEDNOFOCUS', 'MSGBOXRIGHT', |
59 | | | 'MSGBOXRTLREADING', 'MSGBOXSETFOREGROUND', 'NARROW', 'NEWLINE', 'NO', 'NORMAL', |
60 | | | 'NORMALFOCUS', 'NORMALNOFOCUS', 'NULLSTRING', 'OBJECTERROR', 'OK', 'OKCANCEL', 'OKONLY', |
61 | | | 'PROPERCASE', 'QUESTION', 'RAMDISK', 'READONLY', 'RED', 'REMOTE', 'REMOVABLE', 'RETRY', |
62 | | | 'RETRYCANCEL', 'SCROLLBARS', 'SYSTEMFOLDER', 'SYSTEMMODAL', 'TEMPORARYFOLDER', |
63 | | | 'TEXTCOMPARE', 'TITLEBARTEXT', 'TRUE', 'UNICODE', 'UNKNOWN', 'UPPERCASE', 'VERTICALTAB', |
64 | | | 'VOLUME', 'WHITE', 'WIDE', 'WIN16', 'WIN32', 'WINDOWBACKGROUND', 'WINDOWFRAME', |
65 | | | 'WINDOWSFOLDER', 'WINDOWTEXT', 'YELLOW', 'YES', 'YESNO', 'YESNOCANCEL' |
66 | | | ), |
67 | | | 2 => array( |
68 | | | 'AndAlso', 'As', 'ADDHANDLER', 'ASSEMBLY', 'AUTO', 'Binary', 'ByRef', 'ByVal', 'BEGINEPILOGUE', |
69 | | | 'Else', 'ElseIf', 'Empty', 'Error', 'ENDPROLOGUE', 'EXTERNALSOURCE', 'ENVIRON', 'For', |
70 | | | 'Friend', 'GET', 'HANDLES', 'Input', 'Is', 'IsNot', 'Len', 'Lock', 'Me', 'Mid', 'MUSTINHERIT', 'MustOverride', |
71 | | | 'MYBASE', 'MYCLASS', 'New', 'Next', 'Nothing', 'Null', 'NOTINHERITABLE', |
72 | | | 'NOTOVERRIDABLE', 'OFF', 'On', 'Option', 'Optional', 'Overloads', 'OVERRIDABLE', 'Overrides', 'ParamArray', |
73 | | | 'Print', 'Private', 'Property', 'Public', 'Resume', 'Return', 'Seek', 'Static', 'Step', |
74 | | | 'String', 'SHELL', 'SENDKEYS', 'SET', 'Shared', 'Then', 'Time', 'To', 'THROW', 'WithEvents' |
75 | | | ), |
76 | | | 3 => array( |
77 | | | 'COLLECTION', 'DEBUG', 'DICTIONARY', 'DRIVE', 'DRIVES', 'ERR', 'FILE', 'FILES', |
78 | | | 'FILESYSTEMOBJECT', 'FOLDER', 'FOLDERS', 'TEXTSTREAM' |
79 | | | ), |
80 | | | 4 => array( |
81 | | | 'BOOLEAN', 'BYTE', 'DATE', 'DECIMIAL', 'DOUBLE', 'INTEGER', 'LONG', 'OBJECT', |
82 | | | 'SINGLE STRING' |
83 | | | ), |
84 | | | 5 => array( |
85 | | | 'ADDRESSOF', 'AND', 'BITAND', 'BITNOT', 'BITOR', 'BITXOR', |
86 | | | 'GETTYPE', 'LIKE', 'MOD', 'NOT', 'ORXOR' |
87 | | | ), |
88 | | | 6 => array( |
89 | | | 'APPACTIVATE', 'BEEP', 'CALL', 'CHDIR', 'CHDRIVE', 'CLASS', 'CASE', 'CATCH', 'CONST', |
90 | | | 'DECLARE', 'DELEGATE', 'DELETESETTING', 'DIM', 'DO', 'DOEVENTS', 'END', 'ENUM', |
91 | | | 'EVENT', 'EXIT', 'EACH', 'FUNCTION', 'FINALLY', 'IF', 'IMPORTS', 'INHERITS', |
92 | | | 'INTERFACE', 'IMPLEMENTS', 'KILL', 'LOOP', 'NAMESPACE', 'OPEN', 'PUT', |
93 | | | 'RAISEEVENT', 'RANDOMIZE', 'REDIM', 'REM', 'RESET', 'SAVESETTING', 'SELECT', |
94 | | | 'SETATTR', 'STOP', 'SUB', 'SYNCLOCK', 'STRUCTURE', 'SHADOWS', 'SWITCH', |
95 | | | 'TRY', 'WIDTH', 'WITH', 'WRITE', 'WHILE' |
96 | | | ), |
97 | | | 7 => array( |
98 | | | 'ABS', 'ARRAY', 'ASC', 'ASCB', 'ASCW', 'CALLBYNAME', 'CBOOL', 'CBYTE', 'CCHAR', |
99 | | | 'CCHR', 'CDATE', 'CDBL', 'CDEC', 'CHOOSE', 'CHR', 'CHR$', 'CHRB', 'CHRB$', 'CHRW', |
100 | | | 'CINT', 'CLNG', 'CLNG8', 'CLOSE', 'COBJ', 'COMMAND', 'COMMAND$', 'CONVERSION', |
101 | | | 'COS', 'CREATEOBJECT', 'CSHORT', 'CSTR', 'CURDIR', 'CTYPE', 'CVDATE', 'DATEADD', |
102 | | | 'DATEDIFF', 'DATEPART', 'DATESERIAL', 'DATEVALUE', 'DAY', 'DDB', 'DIR', 'DIR$', |
103 | | | 'EOF', 'ERROR$', 'EXP', 'FILEATTR', 'FILECOPY', 'FILEDATATIME', 'FILELEN', 'FILTER', |
104 | | | 'FIX', 'FORMAT', 'FORMAT$', 'FORMATCURRENCY', 'FORMATDATETIME', 'FORMATNUMBER', |
105 | | | 'FORMATPERCENT', 'FREEFILE', 'FV', 'GETALLSETTINGS', 'GETATTRGETOBJECT', 'GETSETTING', |
106 | | | 'HEX', 'HEX$', 'HOUR', 'IIF', 'IMESTATUS', 'INPUT$', 'INPUTB', 'INPUTB$', 'INPUTBOX', |
107 | | | 'INSTR', 'INSTRB', 'INSTRREV', 'INT', 'IPMT', 'IRR', 'ISARRAY', 'ISDATE', 'ISEMPTY', |
108 | | | 'ISERROR', 'ISNULL', 'ISNUMERIC', 'ISOBJECT', 'JOIN', 'LBOUND', 'LCASE', 'LCASE$', |
109 | | | 'LEFT', 'LEFT$', 'LEFTB', 'LEFTB$', 'LENB', 'LINEINPUT', 'LOC', 'LOF', 'LOG', 'LTRIM', |
110 | | | 'LTRIM$', 'MID$', 'MIDB', 'MIDB$', 'MINUTE', 'MIRR', 'MKDIR', 'MONTH', 'MONTHNAME', |
111 | | | 'MSGBOX', 'NOW', 'NPER', 'NPV', 'OCT', 'OCT$', 'PARTITION', 'PMT', 'PPMT', 'PV', |
112 | | | 'RATE', 'REPLACE', 'RIGHT', 'RIGHT$', 'RIGHTB', 'RIGHTB$', 'RMDIR', 'RND', 'RTRIM', |
113 | | | 'RTRIM$', 'SECOND', 'SIN', 'SLN', 'SPACE', 'SPACE$', 'SPC', 'SPLIT', 'SQRT', 'STR', 'STR$', |
114 | | | 'STRCOMP', 'STRCONV', 'STRING$', 'STRREVERSE', 'SYD', 'TAB', 'TAN', 'TIMEOFDAY', |
115 | | | 'TIMER', 'TIMESERIAL', 'TIMEVALUE', 'TODAY', 'TRIM', 'TRIM$', 'TYPENAME', 'UBOUND', |
116 | | | 'UCASE', 'UCASE$', 'VAL', 'WEEKDAY', 'WEEKDAYNAME', 'YEAR' |
117 | | | ), |
118 | | | 8 => array( |
119 | | | 'ANY', 'ATN', 'CALENDAR', 'CIRCLE', 'CURRENCY', 'DEFBOOL', 'DEFBYTE', 'DEFCUR', |
120 | | | 'DEFDATE', 'DEFDBL', 'DEFDEC', 'DEFINT', 'DEFLNG', 'DEFOBJ', 'DEFSNG', 'DEFSTR', |
121 | | | 'DEFVAR', 'EQV', 'GOSUB', 'IMP', 'INITIALIZE', 'ISMISSING', 'LET', 'LINE', 'LSET', |
122 | | | 'RSET', 'SGN', 'SQR', 'TERMINATE', 'VARIANT', 'VARTYPE', 'WEND' |
123 | | | ), |
124 | | | ), |
125 | | | 'SYMBOLS' => array( |
126 | | | '&', '&=', '*', '*=', '+', '+=', '-', '-=', '//', '/', '/=', '=', '\\', '\\=', |
127 | | | '^', '^=' |
128 | | | ), |
129 | | | 'CASE_SENSITIVE' => array( |
130 | | | GESHI_COMMENTS => false, |
131 | | | 1 => false, |
132 | | | 2 => false, |
133 | | | 3 => false, |
134 | | | 4 => false, |
135 | | | 5 => false, |
136 | | | 6 => false, |
137 | | | 7 => false, |
138 | | | 8 => false, |
139 | | | ), |
140 | | | 'STYLES' => array( |
141 | | | 'KEYWORDS' => array( |
142 | | | 1 => 'color: #0600FF;', //Constants |
143 | | | 2 => 'color: #FF8000;', //Keywords |
144 | | | 3 => 'color: #008000;', //Data Types |
145 | | | 4 => 'color: #FF0000;', //Objects |
146 | | | 5 => 'color: #804040;', //Operators |
147 | | | 6 => 'color: #0600FF;', //Statements |
148 | | | 7 => 'color: #0600FF;', //Functions |
149 | | | 8 => 'color: #0600FF;' //Deprecated |
150 | | | ), |
151 | | | 'COMMENTS' => array( |
152 | | | 1 => 'color: #008080; font-style: italic;', |
153 | | | 'MULTI' => 'color: #008080; font-style: italic;' |
154 | | | ), |
155 | | | 'ESCAPE_CHAR' => array( |
156 | | | |
157 | | | ), |
158 | | | 'BRACKETS' => array( |
159 | | | |
160 | | | ), |
161 | | | 'STRINGS' => array( |
162 | | | |
163 | | | ), |
164 | | | 'NUMBERS' => array( |
165 | | | |
166 | | | ), |
167 | | | 'METHODS' => array( |
168 | | | 1 => 'color: #0000FF;' |
169 | | | ), |
170 | | | 'SYMBOLS' => array( |
171 | | | |
172 | | | ), |
173 | | | 'REGEXPS' => array( |
174 | | | ), |
175 | | | 'SCRIPT' => array( |
176 | | | ) |
177 | | | ), |
178 | | | 'URLS' => array( |
179 | | | 1 => '', |
180 | | | 2 => '', |
181 | | | 3 => 'http://www.google.com/search?q={FNAMEU}+site:msdn.microsoft.com', |
182 | | | 4 => '', |
183 | | | 5 => '', |
184 | | | 6 => '', |
185 | | | 7 => '', |
186 | | | 8 => '' |
187 | | | ), |
188 | | | 'OOLANG' => true, |
189 | | | 'OBJECT_SPLITTERS' => array( |
190 | | | 1 =>'.' |
191 | | | ), |
192 | | | 'REGEXPS' => array( |
193 | | | ), |
194 | | | 'STRICT_MODE_APPLIES' => GESHI_NEVER, |
195 | | | 'SCRIPT_DELIMITERS' => array( |
196 | | | ), |
197 | | | 'HIGHLIGHT_STRICT_BLOCK' => array( |
198 | | | ) |
199 | | | ); |
200 | | | |
201 | | | ?> |