├── Templates └── ASP Script │ ├── default.asp │ └── info.plist ├── Snippets ├── 020 ASP Output delimiters.plist ├── 080 Response.Write.plist ├── 100 Application("").plist ├── 110 Session("").plist ├── 060 Request.Form("").plist ├── 090 Response.Redirect.plist ├── 070 Request.QueryString.plist ├── 050 ASP While.plist ├── 030 ASP for...in.plist └── 040 ASP if-else.plist ├── Preferences ├── Comments (ASP).plist ├── Folding - ASP.tmPreferences ├── Folding - HTML-ASP.tmPreferences └── Comments (HTML - ASP).tmPreferences ├── README.mdown ├── info.plist └── Syntaxes ├── HTML-ASP.plist └── ASP.plist /Templates/ASP Script/default.asp: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | %> -------------------------------------------------------------------------------- /Templates/ASP Script/info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | command 6 | perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' <default.asp >"$TM_NEW_FILE" 7 | extension 8 | asp 9 | name 10 | ASP Script 11 | uuid 12 | 2D3927D6-6DFB-11D9-91EB-000D93589AF6 13 | 14 | 15 | -------------------------------------------------------------------------------- /Snippets/020 ASP Output delimiters.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | <%= $0 %> 7 | name 8 | <%= %> 9 | scope 10 | source.asp 11 | tabTrigger 12 | = 13 | uuid 14 | 6D6BE737-63AB-11D9-B316-000A95CA2CD0 15 | 16 | 17 | -------------------------------------------------------------------------------- /Snippets/080 Response.Write.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | Response.Write 7 | name 8 | Response.Write 9 | scope 10 | source.asp 11 | tabTrigger 12 | r.w 13 | uuid 14 | 6D6BEF38-63AB-11D9-B316-000A95CA2CD0 15 | 16 | 17 | -------------------------------------------------------------------------------- /Snippets/100 Application("").plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | Application("$1") 7 | name 8 | Application("…") 9 | scope 10 | source.asp 11 | tabTrigger 12 | app 13 | uuid 14 | 6D6BF1DF-63AB-11D9-B316-000A95CA2CD0 15 | 16 | 17 | -------------------------------------------------------------------------------- /Snippets/110 Session("").plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | Session("${1:whatever}") 7 | name 8 | Session("…") 9 | scope 10 | source.asp 11 | tabTrigger 12 | sess 13 | uuid 14 | 6D6BF39D-63AB-11D9-B316-000A95CA2CD0 15 | 16 | 17 | -------------------------------------------------------------------------------- /Snippets/060 Request.Form("").plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | Request.Form("${1:field}") 7 | name 8 | Request.Form("…") 9 | scope 10 | source.asp 11 | tabTrigger 12 | r.f 13 | uuid 14 | 6D6BECA3-63AB-11D9-B316-000A95CA2CD0 15 | 16 | 17 | -------------------------------------------------------------------------------- /Snippets/090 Response.Redirect.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | Response.Redirect(${1:to}) 7 | name 8 | Response.Redirect 9 | scope 10 | source.asp 11 | tabTrigger 12 | r.r 13 | uuid 14 | 6D6BF08E-63AB-11D9-B316-000A95CA2CD0 15 | 16 | 17 | -------------------------------------------------------------------------------- /Snippets/070 Request.QueryString.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | Request.QueryString("${1:name}") 7 | name 8 | Request.QueryString 9 | scope 10 | source.asp 11 | tabTrigger 12 | r.q 13 | uuid 14 | 6D6BEDE9-63AB-11D9-B316-000A95CA2CD0 15 | 16 | 17 | -------------------------------------------------------------------------------- /Snippets/050 ASP While.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | While ${1:NOT ${2:condition}} 7 | ${3:' body} 8 | Wend 9 | name 10 | While … Wend 11 | scope 12 | source.asp 13 | tabTrigger 14 | while 15 | uuid 16 | 6D6BEB4F-63AB-11D9-B316-000A95CA2CD0 17 | 18 | 19 | -------------------------------------------------------------------------------- /Snippets/030 ASP for...in.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | For ${1:var} in ${2:array} 7 | ${3:' body} 8 | Next 9 | name 10 | For … in … Next 11 | scope 12 | source.asp 13 | tabTrigger 14 | forin 15 | uuid 16 | 6D6BE8AC-63AB-11D9-B316-000A95CA2CD0 17 | 18 | 19 | -------------------------------------------------------------------------------- /Snippets/040 ASP if-else.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | If ${1:condition} Then 7 | ${2:' true} 8 | Else 9 | ${3:' false} 10 | End if 11 | name 12 | If … End if 13 | scope 14 | source.asp 15 | tabTrigger 16 | ifelse 17 | uuid 18 | 6D6BE9FA-63AB-11D9-B316-000A95CA2CD0 19 | 20 | 21 | -------------------------------------------------------------------------------- /Preferences/Comments (ASP).plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | name 6 | Comments (ASP) 7 | scope 8 | source.asp 9 | settings 10 | 11 | shellVariables 12 | 13 | 14 | name 15 | TM_COMMENT_START 16 | value 17 | ' 18 | 19 | 20 | 21 | uuid 22 | D7521F79-A6B1-4682-BABB-2CF601BBF02B 23 | 24 | 25 | -------------------------------------------------------------------------------- /Preferences/Folding - ASP.tmPreferences: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | name 6 | Folding (ASP) 7 | scope 8 | source.asp 9 | settings 10 | 11 | foldingStartMarker 12 | (?i)^\s*(Public|Private)?\s*(Class|Function|Sub|Property)\s*([a-zA-Z_]\w*)\s*(\(.*\)\s*)?$ 13 | foldingStopMarker 14 | (?i)^\s*End (Class|Function|Sub|Property)\s*$ 15 | 16 | uuid 17 | 991BE858-1328-44F9-80A8-28EA3B9284EF 18 | 19 | 20 | -------------------------------------------------------------------------------- /Preferences/Folding - HTML-ASP.tmPreferences: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | name 6 | Folding (HTML - ASP) 7 | scope 8 | text.html.asp 9 | settings 10 | 11 | foldingStartMarker 12 | (<(?i:(head|table|div|style|script|ul|ol|form|dl))\b.*?>|\{) 13 | foldingStopMarker 14 | (</(?i:(head|table|div|style|script|ul|ol|form|dl))>|\}) 15 | 16 | uuid 17 | 3361CAD9-B3AB-48EF-B6D1-1DA692C32140 18 | 19 | 20 | -------------------------------------------------------------------------------- /Preferences/Comments (HTML - ASP).tmPreferences: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | name 6 | Comments (HTML - ASP) 7 | scope 8 | text.html.asp 9 | settings 10 | 11 | shellVariables 12 | 13 | 14 | name 15 | TM_COMMENT_START 16 | value 17 | <%-- 18 | 19 | 20 | name 21 | TM_COMMENT_END 22 | value 23 | --%> 24 | 25 | 26 | 27 | uuid 28 | FC9C819A-07AB-4BC4-87B6-8891BC7821AB 29 | 30 | 31 | -------------------------------------------------------------------------------- /README.mdown: -------------------------------------------------------------------------------- 1 | # Installation 2 | 3 | You can install this bundle in TextMate by opening the preferences and going to the bundles tab. After installation it will be automatically updated for you. 4 | 5 | # General 6 | 7 | * [Bundle Styleguide](http://kb.textmate.org/bundle_styleguide) — _before you make changes_ 8 | * [Commit Styleguide](http://kb.textmate.org/commit_styleguide) — _before you send a pull request_ 9 | * [Writing Bug Reports](http://kb.textmate.org/writing_bug_reports) — _before you report an issue_ 10 | 11 | # License 12 | 13 | If not otherwise specified (see below), files in this repository fall under the following license: 14 | 15 | Permission to copy, use, modify, sell and distribute this 16 | software is granted. This software is provided "as is" without 17 | express or implied warranty, and with no claim as to its 18 | suitability for any purpose. 19 | 20 | An exception is made for files in readable text which contain their own license information, or files where an accompanying file exists (in the same directory) with a “-license” suffix added to the base-name name of the original file, and an extension of txt, html, or similar. For example “tidy” is accompanied by “tidy-license.txt”. -------------------------------------------------------------------------------- /info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | contactEmailRot13 6 | evpuonegba@znp.pbz 7 | contactName 8 | Rich Barton 9 | description 10 | Language grammar, snippets, and more for ASP. 11 | mainMenu 12 | 13 | items 14 | 15 | 6D6BE737-63AB-11D9-B316-000A95CA2CD0 16 | ------------------------------------ 17 | 6D6BF1DF-63AB-11D9-B316-000A95CA2CD0 18 | 6D6BF39D-63AB-11D9-B316-000A95CA2CD0 19 | ------------------------------------ 20 | 6D6BE9FA-63AB-11D9-B316-000A95CA2CD0 21 | 6D6BE8AC-63AB-11D9-B316-000A95CA2CD0 22 | 6D6BEB4F-63AB-11D9-B316-000A95CA2CD0 23 | ------------------------------------ 24 | 6D6BECA3-63AB-11D9-B316-000A95CA2CD0 25 | 6D6BEDE9-63AB-11D9-B316-000A95CA2CD0 26 | 6D6BF08E-63AB-11D9-B316-000A95CA2CD0 27 | 6D6BEF38-63AB-11D9-B316-000A95CA2CD0 28 | 29 | submenus 30 | 31 | 32 | name 33 | ASP 34 | ordering 35 | 36 | 6D6BF1DF-63AB-11D9-B316-000A95CA2CD0 37 | 6D6BECA3-63AB-11D9-B316-000A95CA2CD0 38 | 6D6BEDE9-63AB-11D9-B316-000A95CA2CD0 39 | 6D6BF08E-63AB-11D9-B316-000A95CA2CD0 40 | 6D6BEF38-63AB-11D9-B316-000A95CA2CD0 41 | 6D6BF39D-63AB-11D9-B316-000A95CA2CD0 42 | 6D6BE9FA-63AB-11D9-B316-000A95CA2CD0 43 | 6D6BE8AC-63AB-11D9-B316-000A95CA2CD0 44 | 6D6BEB4F-63AB-11D9-B316-000A95CA2CD0 45 | 6D6BE737-63AB-11D9-B316-000A95CA2CD0 46 | 6D6BE499-63AB-11D9-B316-000A95CA2CD0 47 | 291022B4-6B1D-11D9-90EB-000D93589AF6 48 | 27798CC6-6B1D-11D9-B8FA-000D93589AF6 49 | D7521F79-A6B1-4682-BABB-2CF601BBF02B 50 | 2D3927D6-6DFB-11D9-91EB-000D93589AF6 51 | 52 | uuid 53 | 344D329E-6B21-11D9-B355-000D93589AF6 54 | 55 | 56 | -------------------------------------------------------------------------------- /Syntaxes/HTML-ASP.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | fileTypes 6 | 7 | asp 8 | 9 | keyEquivalent 10 | ^~A 11 | name 12 | HTML (ASP) 13 | patterns 14 | 15 | 16 | begin 17 | <%-- 18 | beginCaptures 19 | 20 | 0 21 | 22 | name 23 | punctuation.definition.comment.begin.asp 24 | 25 | 26 | end 27 | --%> 28 | endCaptures 29 | 30 | 0 31 | 32 | name 33 | punctuation.definition.comment.end.asp 34 | 35 | 36 | name 37 | comment.block.asp.server 38 | 39 | 40 | begin 41 | <%=? 42 | beginCaptures 43 | 44 | 0 45 | 46 | name 47 | punctuation.section.embedded.begin.asp 48 | 49 | 50 | end 51 | %> 52 | endCaptures 53 | 54 | 0 55 | 56 | name 57 | punctuation.section.embedded.end.asp 58 | 59 | 60 | name 61 | source.asp.embedded.html 62 | patterns 63 | 64 | 65 | captures 66 | 67 | 1 68 | 69 | name 70 | punctuation.definition.comment.asp 71 | 72 | 73 | match 74 | (').*?(?=%>) 75 | name 76 | comment.line.apostrophe.asp 77 | 78 | 79 | include 80 | source.asp 81 | 82 | 83 | 84 | 85 | include 86 | text.html.basic 87 | 88 | 89 | scopeName 90 | text.html.asp 91 | uuid 92 | 27798CC6-6B1D-11D9-B8FA-000D93589AF6 93 | 94 | 95 | -------------------------------------------------------------------------------- /Syntaxes/ASP.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | comment 6 | ASP SCRIPTING DICTIONARY – By Rich Barton: Version 1.0 (based on PHP Scripting Dictionary by Justin French, Sune Foldager and Allan Odgaard) Note: .asp is handled by asp/html 7 | fileTypes 8 | 9 | asa 10 | 11 | keyEquivalent 12 | ^~A 13 | name 14 | ASP 15 | patterns 16 | 17 | 18 | captures 19 | 20 | 1 21 | 22 | name 23 | storage.type.function.asp 24 | 25 | 2 26 | 27 | name 28 | entity.name.function.asp 29 | 30 | 3 31 | 32 | name 33 | punctuation.definition.parameters.asp 34 | 35 | 4 36 | 37 | name 38 | variable.parameter.function.asp 39 | 40 | 5 41 | 42 | name 43 | punctuation.definition.parameters.asp 44 | 45 | 46 | match 47 | ^\s*((?i:function|sub))\s*([a-zA-Z_]\w*)\s*(\()([^)]*)(\)).*\n? 48 | name 49 | meta.function.asp 50 | 51 | 52 | begin 53 | (^[ \t]+)?(?=') 54 | beginCaptures 55 | 56 | 1 57 | 58 | name 59 | punctuation.whitespace.comment.leading.asp 60 | 61 | 62 | end 63 | (?!\G) 64 | patterns 65 | 66 | 67 | begin 68 | ' 69 | beginCaptures 70 | 71 | 0 72 | 73 | name 74 | punctuation.definition.comment.asp 75 | 76 | 77 | end 78 | \n 79 | name 80 | comment.line.apostrophe.asp 81 | 82 | 83 | 84 | 85 | begin 86 | (^[ \t]+)?(?=REM ) 87 | beginCaptures 88 | 89 | 1 90 | 91 | name 92 | punctuation.whitespace.comment.leading.asp 93 | 94 | 95 | end 96 | (?!\G) 97 | patterns 98 | 99 | 100 | begin 101 | REM 102 | beginCaptures 103 | 104 | 0 105 | 106 | name 107 | punctuation.definition.comment.asp 108 | 109 | 110 | end 111 | \n 112 | name 113 | comment.line.rem.asp 114 | 115 | 116 | 117 | 118 | match 119 | (?i:\b(If|Then|Else|ElseIf|End If|While|Wend|For|To|Each|In|Step|Case|Select|End Select|Return|Continue|Do|Until|Loop|Next|With|Exit Do|Exit For|Exit Function|Exit Property|Exit Sub)\b) 120 | name 121 | keyword.control.asp 122 | 123 | 124 | match 125 | =|>=|<|>|<|<>|\+|-|\*|\^|&|\b(?i:(Mod|And|Not|Or|Xor|Is))\b 126 | name 127 | keyword.operator.asp 128 | 129 | 130 | match 131 | (?i:\b(Call|Class|Const|Dim|Redim|Function|Sub|Property|End Property|End sub|End Function|Set|Let|Get|New|Randomize|Option Explicit|On Error Resume Next|On Error GoTo)\b) 132 | name 133 | storage.type.asp 134 | 135 | 136 | match 137 | (?i:\b(Private|Public|Default)\b) 138 | name 139 | storage.modifier.asp 140 | 141 | 142 | match 143 | (?i:\b(Empty|False|Nothing|Null|True)\b) 144 | name 145 | constant.language.asp 146 | 147 | 148 | begin 149 | " 150 | beginCaptures 151 | 152 | 0 153 | 154 | name 155 | punctuation.definition.string.begin.asp 156 | 157 | 158 | end 159 | "(?!") 160 | endCaptures 161 | 162 | 0 163 | 164 | name 165 | punctuation.definition.string.end.asp 166 | 167 | 168 | name 169 | string.quoted.double.asp 170 | patterns 171 | 172 | 173 | match 174 | "" 175 | name 176 | constant.character.escape.apostrophe.asp 177 | 178 | 179 | 180 | 181 | captures 182 | 183 | 1 184 | 185 | name 186 | punctuation.definition.variable.asp 187 | 188 | 189 | match 190 | (\$)[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\b 191 | name 192 | variable.other.asp 193 | 194 | 195 | match 196 | (?i:\b(Application|ObjectContext|Request|Response|Server|Session)\b) 197 | name 198 | support.class.asp 199 | 200 | 201 | match 202 | (?i:\b(Contents|StaticObjects|ClientCertificate|Cookies|Form|QueryString|ServerVariables)\b) 203 | name 204 | support.class.collection.asp 205 | 206 | 207 | match 208 | (?i:\b(TotalBytes|Buffer|CacheControl|Charset|ContentType|Expires|ExpiresAbsolute|IsClientConnected|PICS|Status|ScriptTimeout|CodePage|LCID|SessionID|Timeout)\b) 209 | name 210 | support.constant.asp 211 | 212 | 213 | match 214 | (?i:\b(Lock|Unlock|SetAbort|SetComplete|BianryRead|AddHeader|AppendToLog|BinaryWrite|Clear|End|Flush|Redirect|Write|CreateObject|HTMLEncode|MapPath|URLEncode|Abandon)\b) 215 | name 216 | support.function.asp 217 | 218 | 219 | match 220 | (?i:\b(Application_OnEnd|Application_OnStart|OnTransactionAbort|OnTransactionCommit|Session_OnEnd|Session_OnStart|Class_Initialize|Class_Terminate)\b) 221 | name 222 | support.function.event.asp 223 | 224 | 225 | match 226 | (?i:\b(Array|Add|Asc|Atn|CBool|CByte|CCur|CDate|CDbl|Chr|CInt|CLng|Conversions|Cos|CreateObject|CSng|CStr|Date|DateAdd|DateDiff|DatePart|DateSerial|DateValue|Day|Derived|Math|Escape|Eval|Exists|Exp|Filter|FormatCurrency|FormatDateTime|FormatNumber|FormatPercent|GetLocale|GetObject|GetRef|Hex|Hour|InputBox|InStr|InStrRev|Int|Fix|IsArray|IsDate|IsEmpty|IsNull|IsNumeric|IsObject|Item|Items|Join|Keys|LBound|LCase|Left|Len|LoadPicture|Log|LTrim|RTrim|Trim|Maths|Mid|Minute|Month|MonthName|MsgBox|Now|Oct|Remove|RemoveAll|Replace|RGB|Right|Rnd|Round|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)\b) 227 | name 228 | support.function.vb.asp 229 | 230 | 231 | match 232 | \b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?\b 233 | name 234 | constant.numeric.asp 235 | 236 | 237 | match 238 | (?i:\b(vbtrue|vbfalse|vbcr|vbcrlf|vbformfeed|vblf|vbnewline|vbnullchar|vbnullstring|vbtab|vbverticaltab|vbbinarycompare|vbtextcomparevbsunday|vbmonday|vbtuesday|vbwednesday|vbthursday|vbfriday|vbsaturday|vbusesystemdayofweek|vbfirstjan1|vbfirstfourdays|vbfirstfullweek|vbgeneraldate|vblongdate|vbshortdate|vblongtime|vbshorttime|vbobjecterror|vbEmpty|vbNull|vbInteger|vbLong|vbSingle|vbDouble|vbCurrency|vbDate|vbString|vbObject|vbError|vbBoolean|vbVariant|vbDataObject|vbDecimal|vbByte|vbArray)\b) 239 | name 240 | support.type.vb.asp 241 | 242 | 243 | scopeName 244 | source.asp 245 | uuid 246 | 291022B4-6B1D-11D9-90EB-000D93589AF6 247 | 248 | 249 | --------------------------------------------------------------------------------