├── Snippets ├── embedded source return value.plist ├── vbCrLf.plist ├── vbProperCase.plist ├── vbUpperCase.plist ├── Session (ASP).plist ├── break out of string.plist ├── Request.Form (ASP).plist ├── Request.Cookies (ASP).plist ├── Request.QueryString (ASP).plist ├── embedded source.plist ├── ASP.NET Sub.plist ├── String.Format().plist ├── Response.Write().plist ├── IIf() quote.plist ├── ASP.NET Sub (group selection).plist ├── Regex.Replace().plist ├── IIf() quote html.plist ├── If then HTML.plist ├── IIf().plist ├── Bound Column.plist ├── ASP.NET Function.plist ├── Hilight Search Terms(TEXT).plist ├── ASP.NET single quote in SQL statement.plist ├── asp_BoundColumn.plist ├── SqlCommand.plist ├── ServerVariables.plist ├── ASP.NET SQLDataReader.plist ├── SQLDataReader Bound.plist ├── ASP TamplateColumn Checkbox.plist ├── asp_TemplateColumn.plist ├── MM_DataGrid Sort Page Search.plist └── MM_DataGrid Sort Page Edit.plist ├── Preferences ├── Folding - ASP.tmPreferences └── Folding - HTML.tmPreferences ├── README.mdown ├── info.plist └── Syntaxes ├── ASP VB.net.plist └── HTML for ASP.net.plist /Snippets/embedded source return value.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | <%= $0 %> 7 | name 8 | <%= %> 9 | scope 10 | text.html.asp 11 | tabTrigger 12 | = 13 | uuid 14 | 893BC5DA-1633-48B3-9401-8184F5ABE662 15 | 16 | 17 | -------------------------------------------------------------------------------- /Snippets/vbCrLf.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | "& vbCr${2:Lf} _ 7 | & "$1$0 8 | keyEquivalent 9 | # 10 | name 11 | vbCrLf 12 | scope 13 | source.asp string 14 | uuid 15 | 971CECA8-CC9E-4E4F-A7EE-92392E6101BF 16 | 17 | 18 | -------------------------------------------------------------------------------- /Snippets/vbProperCase.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | StrConv(${1:${TM_SELECTED_TEXT:"String"}}, vbProperCase) 7 | keyEquivalent 8 | ^~u 9 | name 10 | vbProperCase 11 | scope 12 | source.asp -string 13 | uuid 14 | 934D018D-DD49-4024-9E79-BC591EAEE5E0 15 | 16 | 17 | -------------------------------------------------------------------------------- /Snippets/vbUpperCase.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | StrConv(${1:${TM_SELECTED_TEXT:"String"}}, vbUpperCase) 7 | keyEquivalent 8 | ^u 9 | name 10 | vbUpperCase 11 | scope 12 | source.asp -string 13 | uuid 14 | 549205DD-8595-449C-B4E6-C088045D76AD 15 | 16 | 17 | -------------------------------------------------------------------------------- /Snippets/Session (ASP).plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | ${2:Session}("${1:${TM_SELECTED_TEXT:VariableName}}")$0 7 | keyEquivalent 8 | @( 9 | name 10 | Session (ASP) 11 | scope 12 | source.asp, text.html.asp 13 | uuid 14 | 7598D75F-6649-4BDF-9FC4-6E8782C66B66 15 | 16 | 17 | -------------------------------------------------------------------------------- /Snippets/break out of string.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | "& ${2:`echo $TM_SELECTED_TEXT`} &" 7 | keyEquivalent 8 | @" 9 | name 10 | "& &" 11 | scope 12 | source.asp string.quoted.double 13 | uuid 14 | 75A09C24-D28A-4B56-9DCB-5125D9E4555B 15 | 16 | 17 | -------------------------------------------------------------------------------- /Snippets/Request.Form (ASP).plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | ${2:Request.Form}("${1:${TM_SELECTED_TEXT:VariableName}}")$0 7 | keyEquivalent 8 | @( 9 | name 10 | Request.Form (ASP) 11 | scope 12 | source.asp, text.html.asp 13 | uuid 14 | 18158109-9DF4-4070-9533-A5C414448C99 15 | 16 | 17 | -------------------------------------------------------------------------------- /Snippets/Request.Cookies (ASP).plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | ${2:Request.Cookies}("${1:${TM_SELECTED_TEXT:VariableName}}")$0 7 | keyEquivalent 8 | @( 9 | name 10 | Request.Cookies (ASP) 11 | scope 12 | source.asp, text.html.asp 13 | uuid 14 | 699E82AF-02FA-43C3-9B31-EAB7D65F6099 15 | 16 | 17 | -------------------------------------------------------------------------------- /Snippets/Request.QueryString (ASP).plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | ${2:Request.QueryString}("${1:${TM_SELECTED_TEXT:VariableName}}")$0 7 | keyEquivalent 8 | @( 9 | name 10 | Request.QueryString (ASP) 11 | scope 12 | source.asp, text.html.asp 13 | uuid 14 | B535C3C8-D1B5-44FA-A7A4-22A53E51021F 15 | 16 | 17 | -------------------------------------------------------------------------------- /Snippets/embedded source.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | <%${2:=} ${1:${TM_SELECTED_TEXT:Content}}$0 %> 7 | keyEquivalent 8 | ^% 9 | name 10 | <%> 11 | scope 12 | text.html.asp 13 | tabTrigger 14 | p 15 | uuid 16 | F3C06C1F-E04A-42B2-B611-99C48E1F6FC1 17 | 18 | 19 | -------------------------------------------------------------------------------- /Snippets/ASP.NET Sub.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | sub ${2:Process}(${2:sender as Object, e as EventArgs}) 7 | ${1:${TM_SELECTED_TEXT:'Do that thing you do}}$0 8 | end sub 9 | 10 | name 11 | Sub 12 | scope 13 | source.asp 14 | tabTrigger 15 | sub 16 | uuid 17 | BD4C231E-8F19-4ACA-844B-B0F4D065D2AD 18 | 19 | 20 | -------------------------------------------------------------------------------- /Snippets/String.Format().plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | ${3:String.Format("${2:{0:c\}}", ${1:${TM_SELECTED_TEXT:price}})} 7 | keyEquivalent 8 | ^~ 9 | name 10 | String.Format() 11 | scope 12 | source.asp 13 | tabTrigger 14 | format 15 | uuid 16 | 14B0D39F-DEF8-435E-82D3-FB992B042A81 17 | 18 | 19 | -------------------------------------------------------------------------------- /Snippets/Response.Write().plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | ${3:Response.Write(${1:${TM_SELECTED_TEXT:"Hello World!!!!1!"}})} 7 | keyEquivalent 8 | ^~ 9 | name 10 | Response.Write() 11 | scope 12 | source.asp 13 | tabTrigger 14 | write 15 | uuid 16 | FBE6DBA4-ADBA-4744-971E-1E61E6FD5992 17 | 18 | 19 | -------------------------------------------------------------------------------- /Snippets/IIf() quote.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | "& IIf(${2:Is_This_True?},"${1:${TM_SELECTED_TEXT:True}}",${4:"$3"})$0 &" 7 | keyEquivalent 8 | ^@i 9 | name 10 | IIf() "" 11 | scope 12 | source.asp string 13 | tabTrigger 14 | IIf 15 | uuid 16 | 516A2F6B-E1BD-4E30-9CBA-FCB2D400C60B 17 | 18 | 19 | -------------------------------------------------------------------------------- /Snippets/ASP.NET Sub (group selection).plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | ${1:Process}($2) 7 | ${3:sub ${1:Process}($2) 8 | ${TM_SELECTED_TEXT:'Do that thing you do 9 | }$0end sub 10 | } 11 | keyEquivalent 12 | ^~ 13 | name 14 | Sub (group selection) 15 | scope 16 | source.asp 17 | uuid 18 | 56A9D3BB-181D-4950-9389-664E2435DC3C 19 | 20 | 21 | -------------------------------------------------------------------------------- /Snippets/Regex.Replace().plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | ${10:Regex.Replace(${1:${TM_SELECTED_TEXT:"Hello World!!!!1!"}}$0,"${3:[^_\w\d\s]}","$4")} 7 | keyEquivalent 8 | ^~ 9 | name 10 | Regex.Replace() 11 | scope 12 | source.asp 13 | tabTrigger 14 | write 15 | uuid 16 | 5541855F-D39A-48BB-AC67-E946C3EFB467 17 | 18 | 19 | -------------------------------------------------------------------------------- /Snippets/IIf() quote html.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | <%= IIf(${2:Is_This_True?},"${1:${TM_SELECTED_TEXT:True}}",${4:"$3"})$0 %> 7 | keyEquivalent 8 | ^@i 9 | name 10 | IIf() "" html 11 | scope 12 | text.html.asp string -source 13 | tabTrigger 14 | IIf 15 | uuid 16 | FBDCCC35-1DB9-42BE-8C97-96183C2D0CA0 17 | 18 | 19 | -------------------------------------------------------------------------------- /Snippets/If then HTML.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | <% if ${2:Is_This_True?} %>${1:${TM_SELECTED_TEXT:True}}${4:<% else %>$3}<% end if %>$0 7 | keyEquivalent 8 | ^@i 9 | name 10 | If then HTML 11 | scope 12 | text.html.asp 13 | tabTrigger 14 | IIf 15 | uuid 16 | E2DA60E2-97F4-42AC-AF9E-5A0C7DE4B724 17 | 18 | 19 | -------------------------------------------------------------------------------- /Snippets/IIf().plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | IIf(${1:${TM_SELECTED_TEXT:Is_This_True?}},${2:true},${3:false})$0 7 | keyEquivalent 8 | ^@i 9 | name 10 | IIf() 11 | scope 12 | source.asp -(source string), text string source.asp -(source string) 13 | tabTrigger 14 | IIf 15 | uuid 16 | 7624FE5A-4293-4081-BDA8-7CD6534D7D5A 17 | 18 | 19 | -------------------------------------------------------------------------------- /Snippets/Bound Column.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | <%# DataBinder.Eval(Container.DataItem, "${1:${TM_SELECTED_TEXT:ColumnName}}"${2:, "{0:C\}"}) %>$0 7 | keyEquivalent 8 | ^# 9 | name 10 | # Container.DataItem 11 | scope 12 | text.html.asp.net 13 | tabTrigger 14 | # 15 | uuid 16 | DFF5EEC2-48AA-41AE-A0F5-AD0CCC49F285 17 | 18 | 19 | -------------------------------------------------------------------------------- /Snippets/ASP.NET Function.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | Function ${1:Process}(${2:This_Item} As ${3:String}) As ${4:Boolean} 7 | Return ${5:True}$0 8 | End Function 9 | 10 | keyEquivalent 11 | ^~ 12 | name 13 | Function 14 | scope 15 | source.asp 16 | tabTrigger 17 | function 18 | uuid 19 | 312FE06B-D9DA-4EBF-AF43-5CF67CC8A127 20 | 21 | 22 | -------------------------------------------------------------------------------- /Snippets/Hilight Search Terms(TEXT).plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | ${3:IIf(Request.Querystring("s")<>"",Regex.Replace(${1:${TM_SELECTED_TEXT:"Hello World!!!1!"}}, "("& Request.Querystring("s") &")", "<${2:span} class='ss'>\$1</${2:span}>"),$1)} 7 | keyEquivalent 8 | ^~ 9 | name 10 | Hilight Search Terms(TEXT) 11 | scope 12 | source.asp 13 | tabTrigger 14 | format 15 | uuid 16 | 4BC9912E-93CF-4C5D-A264-425D0151C542 17 | 18 | 19 | -------------------------------------------------------------------------------- /Snippets/ASP.NET single quote in SQL statement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | "& Chr(39) &" 7 | keyEquivalent 8 | ' 9 | name 10 | ' = "&Chr(39)&" 11 | scope 12 | text.html.asp meta.tag string.quoted.single source.asp string.quoted.double, text.html.asp meta.tag.html string.quoted.single.html meta.source.embedded.bound source.asp.embedded.html string.quoted.double.asp, text.html.asp meta.tag string.quoted.single source string.quoted.double 13 | uuid 14 | A0D228AD-2CDA-423A-A621-597238AD472A 15 | 16 | 17 | -------------------------------------------------------------------------------- /Preferences/Folding - ASP.tmPreferences: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | name 6 | Folding (ASP) 7 | scope 8 | source.asp.vb.net 9 | settings 10 | 11 | foldingStartMarker 12 | (<(?i:(head|table|div|style|script|ul|ol|form|dl))\b.*?>|\{|^\s*<?%?\s*'?\s*(?i:(sub|private\s+Sub|public\s+Sub|function|if|while|For))\s*.*$) 13 | foldingStopMarker 14 | (</(?i:(head|table|div|style|script|ul|ol|form|dl))>?|\}|^\s*<?%?\s*\s*'?\s*(?i:(end|Next))\s*.*$) 15 | 16 | uuid 17 | AD84EF71-8D41-489E-9437-D59B2A74E82C 18 | 19 | 20 | -------------------------------------------------------------------------------- /Snippets/asp_BoundColumn.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | <asp:BoundColumn HeaderText="${1:${TM_SELECTED_TEXT:ColumnName}}" DataField="${1:${TM_SELECTED_TEXT:ColumnName}}" SortExpression="${1:${TM_SELECTED_TEXT:ColumnName}}" ${2:ReadOnly="True" ${3:DataFormatString="{0:C\}" FooterText="${1:${TM_SELECTED_TEXT:ColumnName}}" }}/> 7 | keyEquivalent 8 | ^~ 9 | name 10 | asp:BoundColumn 11 | scope 12 | text.html.asp.net 13 | tabTrigger 14 | asp: 15 | uuid 16 | 9ACAEFB8-C366-41F5-9DD9-61C646C00548 17 | 18 | 19 | -------------------------------------------------------------------------------- /Snippets/SqlCommand.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | Dim $4_CON As New System.Data.SQLClient.SQLConnection(System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_${2:CFC_LIVE}")) 7 | Dim $4_COM As New System.Data.SQLClient.SqlCommand( "${1:${TM_SELECTED_TEXT:UPDATE Users SET Clue = 1 WHERE username = 'taylott'}}", $4_CON) 8 | $4_COM.Connection.Open() 9 | $4_COM.ExecuteNonQuery() 10 | $4_COM.Connection.Close() 11 | 12 | keyEquivalent 13 | ^~ 14 | name 15 | SqlCommand 16 | scope 17 | source.asp 18 | tabTrigger 19 | sql 20 | uuid 21 | 142C4861-B95A-4DBB-A693-1996AF4A62A5 22 | 23 | 24 | -------------------------------------------------------------------------------- /Snippets/ServerVariables.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | <TABLE> 7 | <TR> 8 | <TD> 9 | <B>Server Varriable</B> 10 | </TD> 11 | <TD> 12 | <B>Value</B> 13 | </TD> 14 | </TR> 15 | <% dim name as string %> 16 | <% For Each name In Request.ServerVariables %> 17 | <TR> 18 | <TD> 19 | <%= name %> 20 | </TD> 21 | <TD> 22 | <%= Request.ServerVariables(name) %> 23 | </TD> 24 | </TR> 25 | <% Next %> 26 | </TABLE> 27 | 28 | keyEquivalent 29 | ^~ 30 | name 31 | ServerVariables 32 | scope 33 | text.html.asp.net 34 | uuid 35 | D24D1AAC-F745-4120-A9A3-85C22083A927 36 | 37 | 38 | -------------------------------------------------------------------------------- /Snippets/ASP.NET SQLDataReader.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | Dim con$4 as new System.Data.SQLClient.SQLConnection(System.Configuration.ConfigurationSettings.AppSettings("${3:MM_CONNECTION_STRING_TIW_LIVE}")) 7 | con$4.Open() 8 | Dim strSQL$4 as String = "${1:${TM_SELECTED_TEXT:SELECT * FROM Users WHERE Clue > 0}}" 9 | Dim com$4 as new System.Data.SQLClient.SQLCommand(strSQL$4, Con$4) 10 | Dim r$4 as System.Data.SQLClient.SQLDataReader = Com$4.ExecuteReader() 11 | While r$4.Read() 12 | ${5:r$4(0)}$0 13 | End While 14 | r$4.Close() 15 | con$4.close() 16 | 17 | keyEquivalent 18 | ^~ 19 | name 20 | SQLDataReader Loop 21 | scope 22 | source.asp 23 | tabTrigger 24 | sql 25 | uuid 26 | A20AA1B8-4F3E-492B-B619-2EF46832CB69 27 | 28 | 29 | -------------------------------------------------------------------------------- /Snippets/SQLDataReader Bound.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | Dim conn$1 as New SqlConnection(ConfigurationSettings.AppSettings("${4:MM_CONNECTION_STRING_TIW_LIVE}"))'1. Create a connection 7 | Const strSQL$1 as String = "${2:SELECT * FROM Users WHERE Clue > 0}"'2. Create the command object, passing in the SQL string 8 | Dim comm$1 as New SqlCommand(strSQL$1, conn$1) 9 | conn$1.Open() 10 | ${1:${TM_SELECTED_TEXT:IdOfThinggy}}.DataSource = comm$1.ExecuteReader(CommandBehavior.CloseConnection) 11 | ${1:${TM_SELECTED_TEXT:IdOfThinggy}}.DataBind()'Set the datagrid's datasource to the datareader and databind 12 | conn$1.Close()$0 13 | keyEquivalent 14 | ^~ 15 | name 16 | SQLDataReader Bound 17 | scope 18 | source.asp 19 | tabTrigger 20 | sql 21 | uuid 22 | AF62ECDD-219A-44A8-B47F-7B1F538DC241 23 | 24 | 25 | -------------------------------------------------------------------------------- /Snippets/ASP TamplateColumn Checkbox.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | <asp:TemplateColumn HeaderText="${1:`echo $TM_SELECTED_TEXT`}" Visible="True"> 7 | <itemtemplate><asp:CheckBox ID="${1:`echo $TM_SELECTED_TEXT`}" runat="server" Checked='<%# Users.FieldValue("${1:`echo $TM_SELECTED_TEXT`}", Container) %>' enabled="false" /></itemtemplate> 8 | <edititemtemplate> 9 | <asp:CheckBox ID="${1:`echo $TM_SELECTED_TEXT`}" runat="server" Checked='<%# Users.FieldValue("${1:`echo $TM_SELECTED_TEXT`}", Container) %>' /> 10 | </edititemtemplate> 11 | </asp:TemplateColumn> 12 | 13 | keyEquivalent 14 | ^~ 15 | name 16 | asp:TemplateColumn Checkbox 17 | scope 18 | text.html.asp.net 19 | tabTrigger 20 | asp: 21 | uuid 22 | E740C23F-7520-4685-9165-045CD52DDF21 23 | 24 | 25 | -------------------------------------------------------------------------------- /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”. -------------------------------------------------------------------------------- /Snippets/asp_TemplateColumn.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | <asp:TemplateColumn HeaderText="${1:${TM_SELECTED_TEXT:ColumnName}}" ${2:ReadOnly="True" ${3:FooterText="${1:${TM_SELECTED_TEXT:ColumnName}}" }}> 7 | <ItemTemplate>${9: 8 | <%# DataBinder.Eval(Container.DataItem, "${1:${TM_SELECTED_TEXT:ColumnName}}"${8:, "{0:C\}"}) %>$0 9 | }</ItemTemplate>${10: 10 | <EditItemTemplate>${11: 11 | <input name="${1:${TM_SELECTED_TEXT:ColumnName}}" type="text" value="<%# DataBinder.Eval(Container.DataItem, "${1:${TM_SELECTED_TEXT:ColumnName}}"${8:, "{0:C\}"}) %>" size="" maxlength="" /> 12 | }</EditItemTemplate>} 13 | </asp:TemplateColumn> 14 | keyEquivalent 15 | ^~ 16 | name 17 | asp:TemplateColumn 18 | scope 19 | text.html.asp.net 20 | tabTrigger 21 | asp: 22 | uuid 23 | D49E16DC-34E3-480F-903C-6AB0E2408B93 24 | 25 | 26 | -------------------------------------------------------------------------------- /Preferences/Folding - HTML.tmPreferences: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | name 6 | Folding (HTML) 7 | scope 8 | text.html.asp.net 9 | settings 10 | 11 | foldingStartMarker 12 | (?x) 13 | (<(?i:mm:dataset|mm:insert|mm:update|asp:DataGrid|asp:Repeater|asp:TemplateColumn|head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\b 14 | |<!--(?!.*-->) 15 | |<%(?!.*%>) 16 | |\{\{?(if|foreach|capture|literal|foreach|php|section|strip) 17 | |\{\s*($|\?>\s*$|//|/\*(.*\*/\s*$|(?!.*?\*/))) 18 | ) 19 | foldingStopMarker 20 | (?x) 21 | (</(?i:mm:dataset|mm:insert|mm:update|asp:DataGrid|asp:Repeater|asp:TemplateColumn|head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)> 22 | |^\s*--> 23 | |^\s*%> 24 | |\{\{?/(if|foreach|capture|literal|foreach|php|section|strip) 25 | |(^|\s)\} 26 | ) 27 | 28 | uuid 29 | E18256A2-B1EF-4C1E-B928-B165A2F3474E 30 | 31 | 32 | -------------------------------------------------------------------------------- /info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | contactEmailRot13 6 | boyvivbhf@fhogyrTenqvrag.pbz 7 | contactName 8 | Thomas Aylott 9 | description 10 | Lots of snippets and a language grammar for <a href="http://www.asp.net/">ASP.NET</a> 11 | name 12 | ASP vb.NET 13 | ordering 14 | 15 | 7598D75F-6649-4BDF-9FC4-6E8782C66B66 16 | 699E82AF-02FA-43C3-9B31-EAB7D65F6099 17 | B535C3C8-D1B5-44FA-A7A4-22A53E51021F 18 | 18158109-9DF4-4070-9533-A5C414448C99 19 | 75A09C24-D28A-4B56-9DCB-5125D9E4555B 20 | A0D228AD-2CDA-423A-A621-597238AD472A 21 | 7624FE5A-4293-4081-BDA8-7CD6534D7D5A 22 | 516A2F6B-E1BD-4E30-9CBA-FCB2D400C60B 23 | E2DA60E2-97F4-42AC-AF9E-5A0C7DE4B724 24 | FBDCCC35-1DB9-42BE-8C97-96183C2D0CA0 25 | F3C06C1F-E04A-42B2-B611-99C48E1F6FC1 26 | 6D6BE737-63AB-11D9-B316-000A95CA2CD0 27 | DFF5EEC2-48AA-41AE-A0F5-AD0CCC49F285 28 | FBE6DBA4-ADBA-4744-971E-1E61E6FD5992 29 | 5541855F-D39A-48BB-AC67-E946C3EFB467 30 | 14B0D39F-DEF8-435E-82D3-FB992B042A81 31 | 971CECA8-CC9E-4E4F-A7EE-92392E6101BF 32 | 934D018D-DD49-4024-9E79-BC591EAEE5E0 33 | 549205DD-8595-449C-B4E6-C088045D76AD 34 | 9ACAEFB8-C366-41F5-9DD9-61C646C00548 35 | D49E16DC-34E3-480F-903C-6AB0E2408B93 36 | E740C23F-7520-4685-9165-045CD52DDF21 37 | 142C4861-B95A-4DBB-A693-1996AF4A62A5 38 | AF62ECDD-219A-44A8-B47F-7B1F538DC241 39 | A20AA1B8-4F3E-492B-B619-2EF46832CB69 40 | 312FE06B-D9DA-4EBF-AF43-5CF67CC8A127 41 | BD4C231E-8F19-4ACA-844B-B0F4D065D2AD 42 | 56A9D3BB-181D-4950-9389-664E2435DC3C 43 | 68A09D9A-8324-4CCC-AC4A-6D175536EF38 44 | 0DAEDF6F-7009-4CBC-B175-3146F02903ED 45 | D24D1AAC-F745-4120-A9A3-85C22083A927 46 | 4BC9912E-93CF-4C5D-A264-425D0151C542 47 | 7F9C9343-D48E-4E7D-BFE8-F680714DCD3E 48 | 426BF395-E61E-430F-8E4C-47F2E15C769B 49 | 50 | uuid 51 | 4F07B982-DA8C-49E5-AB47-3C0C79BE562B 52 | 53 | 54 | -------------------------------------------------------------------------------- /Snippets/MM_DataGrid Sort Page Search.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | ${9:<div id="search_${1:Orders}"> 7 | <form action="" method="get"> 8 | Search <input name="s" value="<%= Request.Querystring("s") %>" /> 9 | <input type="submit" value="Search ${1:Orders}" /> 10 | </form> 11 | </div> 12 | }<div id="${1:Orders}"> 13 | ${7: <%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %> 14 | <mm:pagebind runat="server" PostBackBind="true" /> 15 | } <mm:dataset ID="${1:Orders}" 16 | runat="Server" 17 | IsStoredProcedure="false" 18 | ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_${3:Common_LIVE}") %>' 19 | DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_${3:Common_LIVE}") %>' 20 | CommandText='<%# "${2:select * from users where clue is not null} ORDER BY "+ IIf((Not Request.Querystring("sortOn") Is Nothing), Request.Querystring("sortOn"), "${4:username}") +" "+ Request.Querystring("sortDir") %>' 21 | Debug="true" PageSize="25" 22 | > 23 | <parameters>${5: 24 | <parameter name="@s" value='<%# "%" + IIf((Not Request.Querystring("s") Is Nothing), Request.Querystring("s"), "") + "%" %>' type="VarChar" /> 25 | }</parameters> 26 | </mm:dataset> 27 | <script runat="server"> 28 | Sub ${1:Orders}_sortCommand(sender as Object, e as DataGridSortCommandEventArgs) 29 | dim sortDir as string = "" 30 | if Request.QueryString("sortOn") = e.SortExpression then 31 | if (Request.QueryString("sortDir") = "") 32 | sortDir = "ASC" 33 | else if (Request.QueryString("sortDir") = "ASC") 34 | sortDir = "DESC" 35 | else if (Request.QueryString("sortDir") = "DESC") 36 | sortDir = "ASC" 37 | end if 38 | else 39 | sortDir = "ASC" 40 | end if 41 | Response.Redirect(Request.ServerVariables("SCRIPT_NAME") + "?sortOn=" + e.SortExpression + "&sortDir=" + sortDir + "&s=" + Request.Querystring("s")) 42 | end sub 43 | </script> 44 | <asp:DataGrid ID="${1:Orders}_DG" 45 | DataKeyField="${4:username}" 46 | AutoGenerateColumns="true" 47 | 48 | runat="server" 49 | AllowSorting="true" 50 | OnSortCommand="${1:Orders}_sortCommand" 51 | 52 | DataSource="<%# ${1:Orders}.DefaultView %>" 53 | OnItemDataBound="${1:Orders}.OnDataGridItemDataBound" 54 | 55 | AllowPaging="true" 56 | AllowCustomPaging="true" 57 | PageSize="<%# ${1:Orders}.PageSize %>" 58 | OnPageIndexChanged="${1:Orders}.OnDataGridPageIndexChanged" 59 | virtualitemcount="<%# ${1:Orders}.RecordCount %>" 60 | PagerStyle-Mode="NumericPages" 61 | PagerStyle-Position="${10:Bottom|Top|TopAndBottom}" 62 | 63 | ShowHeader="true" 64 | ShowFooter="false" 65 | EnableViewstate="false" 66 | > 67 | <headerstyle CssClass="headerstyle" /> 68 | <itemstyle CssClass="itemstyle" /> 69 | <alternatingitemstyle CssClass="alternatingitemstyle" /> 70 | <footerstyle CssClass="footerstyle" /> 71 | <pagerstyle CssClass="pagerstyle" /> 72 | <columns> 73 | $0 74 | </columns> 75 | </asp:DataGrid> 76 | </div> 77 | 78 | keyEquivalent 79 | ^~ 80 | name 81 | MM:DataGrid Sort Page Search 82 | scope 83 | text.html.asp 84 | tabTrigger 85 | datagrid 86 | uuid 87 | 0DAEDF6F-7009-4CBC-B175-3146F02903ED 88 | 89 | 90 | -------------------------------------------------------------------------------- /Snippets/MM_DataGrid Sort Page Edit.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | ${9:<div id="search_${1:Orders}"> 7 | <form action="" method="get"> 8 | Search <input name="s" value="<%= Request.Querystring("s") %>" /> 9 | <input type="submit" value="Search ${1:Orders}" /> 10 | </form> 11 | </div> 12 | }<div id="${1:Orders}"> 13 | ${7: <%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %> 14 | <mm:pagebind runat="server" PostBackBind="true" /> 15 | } <mm:dataset ID="${1:Orders}" 16 | runat="Server" 17 | IsStoredProcedure="false" 18 | ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_${3:Common_LIVE}") %>' 19 | DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_${3:Common_LIVE}") %>' 20 | CommandText='<%# "${2:select * from users where clue is not null} ORDER BY "+ IIf((Not Request.Querystring("sortOn") Is Nothing), Request.Querystring("sortOn"), "${4:username}") +" "+ Request.Querystring("sortDir") %>' 21 | Debug="true" PageSize="25" 22 | > 23 | <parameters>${5: 24 | <parameter name="@s" value='<%# "%" + IIf((Not Request.Querystring("s") Is Nothing), Request.Querystring("s"), "") + "%" %>' type="VarChar" /> 25 | }</parameters>${6: 26 | <editops> 27 | <editopstable name="dbo.tblFedExSecurity" /> 28 | <parameter name="password" type="NVarChar" /> 29 | <parameter name="customerid" type="NVarChar" /> 30 | <parameter name="locationid" type="Int" /> 31 | <parameter name="style" type="NVarChar" /> 32 | <parameter name="sub_style" type="SmallInt" /> 33 | <parameter name="make_style" type="SmallInt" /> 34 | <parameter name="shipping_method" type="SmallInt" /> 35 | <parameter name="type" type="NVarChar" /> 36 | <parameter name="role" type="NVarChar" /> 37 | <parameter name="phone" type="NVarChar" /> 38 | <parameter name="email" type="VarChar" /> 39 | <parameter name="viewreport" type="Bit" /> 40 | <parameter name="viewreportnumbers" type="Bit" /> 41 | <parameter name="viewreportmoney" type="Bit" /> 42 | <parameter name="viewtracking" type="Bit" /> 43 | <parameter name="addlocations" type="Bit" /> 44 | <parameter name="viewlocations" type="Bit" /> 45 | <parameter name="sendemail" type="Bit" /> 46 | <parameter name="fundsallocation" type="Bit" /> 47 | <parameter name="supplyordering" type="Bit" /> 48 | <parameter name="generatecalltag" type="Bit" /> 49 | <parameter name="generateprp" type="Bit" /> 50 | <parameter name="viewlogins" type="Bit" /> 51 | <parameter name="createlogins" type="Bit" /> 52 | <parameter name="${4:username}" type="NVarChar" isprimary="true" /> 53 | </editops>} 54 | </mm:dataset> 55 | <script runat="server"> 56 | Sub ${1:Orders}_sortCommand(sender as Object, e as DataGridSortCommandEventArgs) 57 | dim sortDir as string = "" 58 | if Request.QueryString("sortOn") = e.SortExpression then 59 | if (Request.QueryString("sortDir") = "") 60 | sortDir = "ASC" 61 | else if (Request.QueryString("sortDir") = "ASC") 62 | sortDir = "DESC" 63 | else if (Request.QueryString("sortDir") = "DESC") 64 | sortDir = "ASC" 65 | end if 66 | else 67 | sortDir = "ASC" 68 | end if 69 | Response.Redirect(Request.ServerVariables("SCRIPT_NAME") + "?sortOn=" + e.SortExpression + "&sortDir=" + sortDir + "&s=" + Request.Querystring("s")) 70 | end sub 71 | </script> 72 | <asp:DataGrid ID="${1:Orders}_DG" 73 | DataKeyField="${4:username}" 74 | AutoGenerateColumns="true" 75 | 76 | runat="server" 77 | AllowSorting="true" 78 | OnSortCommand="${1:Orders}_sortCommand" 79 | 80 | DataSource="<%# ${1:Orders}.DefaultView %>" 81 | OnItemDataBound="${1:Orders}.OnDataGridItemDataBound" 82 | OnEditCommand="${1:Orders}.OnDataGridEdit" 83 | OnUpdateCommand="${1:Orders}.OnDataGridUpdate" 84 | OnDeleteCommand="${1:Orders}.OnDataGridDelete" 85 | OnCancelCommand="${1:Orders}.OnDataGridCancel" 86 | 87 | AllowPaging="true" 88 | AllowCustomPaging="true" 89 | PageSize="<%# ${1:Orders}.PageSize %>" 90 | OnPageIndexChanged="${1:Orders}.OnDataGridPageIndexChanged" 91 | virtualitemcount="<%# ${1:Orders}.RecordCount %>" 92 | PagerStyle-Mode="NumericPages" 93 | 94 | ShowHeader="true" 95 | ShowFooter="false" 96 | > 97 | <headerstyle CssClass="headerstyle" /> 98 | <itemstyle CssClass="itemstyle" /> 99 | <alternatingitemstyle CssClass="alternatingitemstyle" /> 100 | <footerstyle CssClass="footerstyle" /> 101 | <pagerstyle CssClass="pagerstyle" /> 102 | <columns> 103 | <asp:EditCommandColumn ButtonType="LinkButton" CancelText="Cancel" EditText="Edit" HeaderText="Edit" UpdateText="Update" visible="True"/> 104 | $0 105 | </columns> 106 | </asp:DataGrid> 107 | </div> 108 | 109 | keyEquivalent 110 | ^~ 111 | name 112 | MM:DataGrid Sort Page Edit 113 | scope 114 | text.html.asp 115 | tabTrigger 116 | datagrid 117 | uuid 118 | 68A09D9A-8324-4CCC-AC4A-6D175536EF38 119 | 120 | 121 | -------------------------------------------------------------------------------- /Syntaxes/ASP VB.net.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | comment 6 | Modified from the original ASP bundle. Originally modified by Thomas Aylott subtleGradient.com 7 | fileTypes 8 | 9 | vb 10 | 11 | keyEquivalent 12 | ^~A 13 | name 14 | ASP vb.NET 15 | patterns 16 | 17 | 18 | match 19 | \n 20 | name 21 | meta.ending-space 22 | 23 | 24 | include 25 | #round-brackets 26 | 27 | 28 | begin 29 | ^(?=\t) 30 | end 31 | (?=[^\t]) 32 | name 33 | meta.leading-space 34 | patterns 35 | 36 | 37 | captures 38 | 39 | 1 40 | 41 | name 42 | meta.odd-tab.tabs 43 | 44 | 2 45 | 46 | name 47 | meta.even-tab.tabs 48 | 49 | 50 | match 51 | (\t)(\t)? 52 | 53 | 54 | 55 | 56 | begin 57 | ^(?= ) 58 | end 59 | (?=[^ ]) 60 | name 61 | meta.leading-space 62 | patterns 63 | 64 | 65 | captures 66 | 67 | 1 68 | 69 | name 70 | meta.odd-tab.spaces 71 | 72 | 2 73 | 74 | name 75 | meta.even-tab.spaces 76 | 77 | 78 | match 79 | ( )( )? 80 | 81 | 82 | 83 | 84 | captures 85 | 86 | 1 87 | 88 | name 89 | storage.type.function.asp 90 | 91 | 2 92 | 93 | name 94 | entity.name.function.asp 95 | 96 | 3 97 | 98 | name 99 | punctuation.definition.parameters.asp 100 | 101 | 4 102 | 103 | name 104 | variable.parameter.function.asp 105 | 106 | 5 107 | 108 | name 109 | punctuation.definition.parameters.asp 110 | 111 | 112 | match 113 | ^\s*((?i:function|sub))\s*([a-zA-Z_]\w*)\s*(\()([^)]*)(\)).*\n? 114 | name 115 | meta.function.asp 116 | 117 | 118 | begin 119 | (^[ \t]+)?(?=') 120 | beginCaptures 121 | 122 | 1 123 | 124 | name 125 | punctuation.whitespace.comment.leading.asp 126 | 127 | 128 | end 129 | (?!\G) 130 | patterns 131 | 132 | 133 | begin 134 | ' 135 | beginCaptures 136 | 137 | 0 138 | 139 | name 140 | punctuation.definition.comment.asp 141 | 142 | 143 | end 144 | \n 145 | name 146 | comment.line.apostrophe.asp 147 | 148 | 149 | 150 | 151 | match 152 | (?i:\b(If|Then|Else|ElseIf|Else If|End If|While|Wend|For|To|Each|Case|Select|End Select|Return|Continue|Do|Until|Loop|Next|With|Exit Do|Exit For|Exit Function|Exit Property|Exit Sub|IIf)\b) 153 | name 154 | keyword.control.asp 155 | 156 | 157 | match 158 | (?i:\b(Mod|And|Not|Or|Xor|as)\b) 159 | name 160 | keyword.operator.asp 161 | 162 | 163 | captures 164 | 165 | 1 166 | 167 | name 168 | storage.type.asp 169 | 170 | 2 171 | 172 | name 173 | variable.other.bfeac.asp 174 | 175 | 3 176 | 177 | name 178 | meta.separator.comma.asp 179 | 180 | 181 | match 182 | (?i:(dim)\s*(?:(\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\b)\s*(,?))) 183 | name 184 | variable.other.dim.asp 185 | 186 | 187 | match 188 | (?i:\s*\b(Call|Class|Const|Dim|Redim|Function|Sub|Private Sub|Public Sub|End Sub|End Function|End Class|End Property|Public Property|Private Property|Set|Let|Get|New|Randomize|Option Explicit|On Error Resume Next|On Error GoTo)\b\s*) 189 | name 190 | storage.type.asp 191 | 192 | 193 | match 194 | (?i:\b(Private|Public|Default)\b) 195 | name 196 | storage.modifier.asp 197 | 198 | 199 | match 200 | (?i:\s*\b(Empty|False|Nothing|Null|True)\b) 201 | name 202 | constant.language.asp 203 | 204 | 205 | begin 206 | " 207 | beginCaptures 208 | 209 | 0 210 | 211 | name 212 | punctuation.definition.string.begin.asp 213 | 214 | 215 | end 216 | " 217 | endCaptures 218 | 219 | 0 220 | 221 | name 222 | punctuation.definition.string.end.asp 223 | 224 | 225 | name 226 | string.quoted.double.asp 227 | patterns 228 | 229 | 230 | match 231 | "" 232 | name 233 | constant.character.escape.apostrophe.asp 234 | 235 | 236 | 237 | 238 | captures 239 | 240 | 1 241 | 242 | name 243 | punctuation.definition.variable.asp 244 | 245 | 246 | match 247 | (\$)[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\b\s* 248 | name 249 | variable.other.asp 250 | 251 | 252 | match 253 | (?i:\b(Application|ObjectContext|Request|Response|Server|Session)\b) 254 | name 255 | support.class.asp 256 | 257 | 258 | match 259 | (?i:\b(Contents|StaticObjects|ClientCertificate|Cookies|Form|QueryString|ServerVariables)\b) 260 | name 261 | support.class.collection.asp 262 | 263 | 264 | match 265 | (?i:\b(TotalBytes|Buffer|CacheControl|Charset|ContentType|Expires|ExpiresAbsolute|IsClientConnected|PICS|Status|ScriptTimeout|CodePage|LCID|SessionID|Timeout)\b) 266 | name 267 | support.constant.asp 268 | 269 | 270 | match 271 | (?i:\b(Lock|Unlock|SetAbort|SetComplete|BinaryRead|AddHeader|AppendToLog|BinaryWrite|Clear|End|Flush|Redirect|Write|CreateObject|HTMLEncode|MapPath|URLEncode|Abandon|Convert|Regex)\b) 272 | name 273 | support.function.asp 274 | 275 | 276 | match 277 | (?i:\b(Application_OnEnd|Application_OnStart|OnTransactionAbort|OnTransactionCommit|Session_OnEnd|Session_OnStart)\b) 278 | name 279 | support.function.event.asp 280 | 281 | 282 | match 283 | (?i:(?<=as )(\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\b)) 284 | name 285 | support.type.vb.asp 286 | 287 | 288 | match 289 | (?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) 290 | name 291 | support.function.vb.asp 292 | 293 | 294 | match 295 | -?\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 296 | name 297 | constant.numeric.asp 298 | 299 | 300 | match 301 | (?i:\b(vbtrue|vbfalse|vbcr|vbcrlf|vbformfeed|vblf|vbnewline|vbnullchar|vbnullstring|int32|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) 302 | name 303 | support.type.vb.asp 304 | 305 | 306 | captures 307 | 308 | 1 309 | 310 | name 311 | entity.name.function.asp 312 | 313 | 314 | match 315 | (?i:(\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\b)(?=\(\)?)) 316 | name 317 | support.function.asp 318 | 319 | 320 | match 321 | (?i:((?<=(\+|=|-|\&|\\|/|<|>|\(|,))\s*\b([a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?)\b(?!(\(|\.))|\b([a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?)\b(?=\s*(\+|=|-|\&|\\|/|<|>|\(|\))))) 322 | name 323 | variable.other.asp 324 | 325 | 326 | match 327 | !|\$|%|&|\*|\-\-|\-|\+\+|\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\|\||\?\:|\*=|/=|%=|\+=|\-=|&=|\^=|\b(in|instanceof|new|delete|typeof|void)\b 328 | name 329 | keyword.operator.js 330 | 331 | 332 | repository 333 | 334 | round-brackets 335 | 336 | begin 337 | \( 338 | beginCaptures 339 | 340 | 0 341 | 342 | name 343 | punctuation.section.round-brackets.begin.asp 344 | 345 | 346 | end 347 | \) 348 | endCaptures 349 | 350 | 0 351 | 352 | name 353 | punctuation.section.round-brackets.end.asp 354 | 355 | 356 | name 357 | meta.round-brackets 358 | patterns 359 | 360 | 361 | include 362 | source.asp.vb.net 363 | 364 | 365 | 366 | 367 | scopeName 368 | source.asp.vb.net 369 | uuid 370 | 7F9C9343-D48E-4E7D-BFE8-F680714DCD3E 371 | 372 | 373 | -------------------------------------------------------------------------------- /Syntaxes/HTML for ASP.net.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | comment 6 | This is a modified version of the HTML language that uses ASP VB.NET for embedded source code instead of ruby. Thomas Aylott subtleGradient.com 7 | fileTypes 8 | 9 | aspx 10 | ascx 11 | master 12 | 13 | keyEquivalent 14 | ^~A 15 | name 16 | HTML (ASP.net) 17 | patterns 18 | 19 | 20 | include 21 | #php 22 | 23 | 24 | include 25 | #asp 26 | 27 | 28 | include 29 | #smarty 30 | 31 | 32 | captures 33 | 34 | 1 35 | 36 | name 37 | punctuation.definition.tag.html 38 | 39 | 2 40 | 41 | name 42 | entity.name.tag.html 43 | 44 | 3 45 | 46 | name 47 | punctuation.definition.tag.html 48 | 49 | 4 50 | 51 | name 52 | meta.scope.between-tag-pair.html 53 | 54 | 5 55 | 56 | name 57 | entity.name.tag.html 58 | 59 | 6 60 | 61 | name 62 | punctuation.definition.tag.html 63 | 64 | 65 | match 66 | (<)(\w+)[^>]*((>)</)(\2)(>) 67 | name 68 | meta.tag.html 69 | 70 | 71 | begin 72 | (<\?)(xml) 73 | captures 74 | 75 | 1 76 | 77 | name 78 | punctuation.definition.tag.html 79 | 80 | 2 81 | 82 | name 83 | entity.name.tag.html 84 | 85 | 86 | end 87 | (\?>) 88 | name 89 | meta.tag.metadata.processing.xml.html 90 | patterns 91 | 92 | 93 | include 94 | #tag-generic-attribute 95 | 96 | 97 | include 98 | #string-double-quoted 99 | 100 | 101 | include 102 | #string-single-quoted 103 | 104 | 105 | 106 | 107 | begin 108 | <!-- 109 | captures 110 | 111 | 0 112 | 113 | name 114 | punctuation.definition.comment.asp.net 115 | 116 | 117 | end 118 | --> 119 | name 120 | comment.block.html 121 | patterns 122 | 123 | 124 | match 125 | -- 126 | name 127 | invalid.illegal.bad-comments-or-CDATA.html 128 | 129 | 130 | 131 | 132 | begin 133 | <! 134 | captures 135 | 136 | 0 137 | 138 | name 139 | punctuation.definition.tag.asp.net 140 | 141 | 142 | end 143 | > 144 | name 145 | meta.tag.metadata.doctype.html 146 | patterns 147 | 148 | 149 | begin 150 | (DOCTYPE) 151 | captures 152 | 153 | 1 154 | 155 | name 156 | entity.name.tag.html 157 | 158 | 159 | end 160 | (?=>) 161 | patterns 162 | 163 | 164 | match 165 | "[^">]*" 166 | name 167 | string.quoted.double.doctype.identifiers-and-DTDs.html 168 | 169 | 170 | 171 | 172 | begin 173 | \[CDATA\[ 174 | end 175 | ]](?=>) 176 | name 177 | constant.other.inline-data.html 178 | 179 | 180 | match 181 | (\s*)(?!--|>)\S(\s*) 182 | name 183 | invalid.illegal.bad-comments-or-CDATA.html 184 | 185 | 186 | 187 | 188 | begin 189 | (?:^\s+)?(<)((?i:script))\b(?![^>]*/>) 190 | captures 191 | 192 | 1 193 | 194 | name 195 | punctuation.definition.tag.html 196 | 197 | 2 198 | 199 | name 200 | entity.name.tag.script.html 201 | 202 | 203 | end 204 | (?<=</(script|SCRIPT))(>)(?:\s*\n)? 205 | name 206 | source.js.embedded.html 207 | patterns 208 | 209 | 210 | include 211 | #tag-stuff 212 | 213 | 214 | begin 215 | (?<!</(?:script|SCRIPT))(>) 216 | captures 217 | 218 | 1 219 | 220 | name 221 | punctuation.definition.tag.html 222 | 223 | 224 | end 225 | (</)((?i:script)) 226 | patterns 227 | 228 | 229 | include 230 | source.js 231 | 232 | 233 | 234 | 235 | 236 | 237 | begin 238 | (?:^\s+)?(<)((?i:style))\b(?![^>]*/>) 239 | captures 240 | 241 | 1 242 | 243 | name 244 | punctuation.definition.tag.html 245 | 246 | 2 247 | 248 | name 249 | entity.name.tag.style.html 250 | 251 | 3 252 | 253 | name 254 | punctuation.definition.tag.html 255 | 256 | 257 | end 258 | (</)((?i:style))(>)(?:\s*\n)? 259 | name 260 | source.css.embedded.html 261 | patterns 262 | 263 | 264 | include 265 | #tag-stuff 266 | 267 | 268 | begin 269 | (>) 270 | beginCaptures 271 | 272 | 1 273 | 274 | name 275 | punctuation.definition.tag.html 276 | 277 | 278 | end 279 | (?=</(?i:style)) 280 | patterns 281 | 282 | 283 | include 284 | source.css 285 | 286 | 287 | 288 | 289 | 290 | 291 | begin 292 | (</?)((?i:body|head|html)\b) 293 | captures 294 | 295 | 1 296 | 297 | name 298 | punctuation.definition.tag.html 299 | 300 | 2 301 | 302 | name 303 | entity.name.tag.structure.any.html 304 | 305 | 306 | end 307 | (>) 308 | name 309 | meta.tag.structure.any.html 310 | patterns 311 | 312 | 313 | include 314 | #tag-stuff 315 | 316 | 317 | 318 | 319 | begin 320 | (</?)((?i:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)\b) 321 | captures 322 | 323 | 1 324 | 325 | name 326 | punctuation.definition.tag.html 327 | 328 | 2 329 | 330 | name 331 | entity.name.tag.block.any.html 332 | 333 | 334 | end 335 | (>) 336 | name 337 | meta.tag.block.any.html 338 | patterns 339 | 340 | 341 | include 342 | #tag-stuff 343 | 344 | 345 | 346 | 347 | begin 348 | (</?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)\b) 349 | captures 350 | 351 | 1 352 | 353 | name 354 | punctuation.definition.tag.html 355 | 356 | 2 357 | 358 | name 359 | entity.name.tag.inline.any.html 360 | 361 | 362 | end 363 | (>) 364 | name 365 | meta.tag.inline.any.html 366 | patterns 367 | 368 | 369 | include 370 | #tag-stuff 371 | 372 | 373 | 374 | 375 | begin 376 | (</?)([a-zA-Z0-9:]+) 377 | captures 378 | 379 | 1 380 | 381 | name 382 | punctuation.definition.tag.html 383 | 384 | 2 385 | 386 | name 387 | entity.name.tag.other.html 388 | 389 | 390 | end 391 | (>) 392 | name 393 | meta.tag.other.html 394 | patterns 395 | 396 | 397 | include 398 | #tag-stuff 399 | 400 | 401 | 402 | 403 | include 404 | #entities 405 | 406 | 407 | match 408 | <> 409 | name 410 | invalid.illegal.incomplete.html 411 | 412 | 413 | match 414 | <(?=\W)|> 415 | name 416 | invalid.illegal.bad-angle-bracket.html 417 | 418 | 419 | repository 420 | 421 | asp 422 | 423 | patterns 424 | 425 | 426 | include 427 | #source-asp-embedded-scripttag 428 | 429 | 430 | include 431 | #source-asp-embedded 432 | 433 | 434 | include 435 | #source-asp-bound 436 | 437 | 438 | include 439 | #source-asp-return 440 | 441 | 442 | captures 443 | 444 | 1 445 | 446 | name 447 | punctuation.definition.tag.asp 448 | 449 | 3 450 | 451 | name 452 | punctuation.definition.tag.asp 453 | 454 | 455 | match 456 | (<!--)\s+#include.*(-->) 457 | name 458 | meta.source.embedded.asp.include 459 | 460 | 461 | 462 | embedded-code 463 | 464 | patterns 465 | 466 | 467 | include 468 | #php 469 | 470 | 471 | include 472 | #asp 473 | 474 | 475 | include 476 | #smarty 477 | 478 | 479 | 480 | entities 481 | 482 | patterns 483 | 484 | 485 | captures 486 | 487 | 1 488 | 489 | name 490 | punctuation.definition.entity.html 491 | 492 | 3 493 | 494 | name 495 | punctuation.definition.entity.html 496 | 497 | 498 | match 499 | (&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;) 500 | name 501 | constant.character.entity.html 502 | 503 | 504 | match 505 | & 506 | name 507 | invalid.illegal.bad-ampersand.html 508 | 509 | 510 | 511 | php 512 | 513 | begin 514 | (?=(^\s*)?<\?) 515 | end 516 | (?!(^\s*)?<\?) 517 | patterns 518 | 519 | 520 | include 521 | text.html.php 522 | 523 | 524 | 525 | ruby 526 | 527 | begin 528 | <%+(?!>)=? 529 | beginCaptures 530 | 531 | 0 532 | 533 | name 534 | punctuation.section.embedded.begin.ruby 535 | 536 | 537 | end 538 | -?%> 539 | endCaptures 540 | 541 | 0 542 | 543 | name 544 | punctuation.section.embedded.end.ruby 545 | 546 | 547 | name 548 | source.ruby.embedded.html 549 | patterns 550 | 551 | 552 | captures 553 | 554 | 1 555 | 556 | name 557 | punctuation.definition.comment.ruby 558 | 559 | 560 | match 561 | (#).*?(?=-?%>) 562 | name 563 | comment.line.number-sign.ruby 564 | 565 | 566 | include 567 | source.ruby 568 | 569 | 570 | 571 | smarty 572 | 573 | patterns 574 | 575 | 576 | begin 577 | ((\{)(literal)(\})) 578 | captures 579 | 580 | 1 581 | 582 | name 583 | source.smarty.embedded.html 584 | 585 | 2 586 | 587 | name 588 | punctuation.section.embedded.smarty 589 | 590 | 3 591 | 592 | name 593 | support.function.built-in.smarty 594 | 595 | 4 596 | 597 | name 598 | punctuation.section.embedded.smarty 599 | 600 | 601 | end 602 | ((\{/)(literal)(\})) 603 | 604 | 605 | begin 606 | {{|{ 607 | captures 608 | 609 | 0 610 | 611 | name 612 | punctuation.section.embedded.smarty 613 | 614 | 615 | disabled 616 | 1 617 | end 618 | }}|} 619 | name 620 | source.smarty.embedded.html 621 | patterns 622 | 623 | 624 | include 625 | source.smarty 626 | 627 | 628 | 629 | 630 | 631 | source-asp-bound 632 | 633 | begin 634 | <%# 635 | beginCaptures 636 | 637 | 0 638 | 639 | name 640 | punctuation.section.embedded.begin.asp 641 | 642 | 643 | end 644 | %> 645 | endCaptures 646 | 647 | 0 648 | 649 | name 650 | punctuation.section.embedded.end.asp 651 | 652 | 653 | name 654 | meta.source.embedded.bound 655 | patterns 656 | 657 | 658 | begin 659 | (?<=<%#) 660 | end 661 | (?=%>) 662 | name 663 | source.asp.embedded.html 664 | patterns 665 | 666 | 667 | include 668 | source.asp.vb.net 669 | 670 | 671 | 672 | 673 | 674 | source-asp-embedded 675 | 676 | begin 677 | <%(?![=#]) 678 | beginCaptures 679 | 680 | 0 681 | 682 | name 683 | punctuation.section.embedded.begin.asp 684 | 685 | 686 | end 687 | %> 688 | endCaptures 689 | 690 | 0 691 | 692 | name 693 | punctuation.section.embedded.end.asp 694 | 695 | 696 | name 697 | meta.source.embedded 698 | patterns 699 | 700 | 701 | begin 702 | (?<=<%) 703 | end 704 | (?=%>) 705 | name 706 | source.asp.embedded.html 707 | patterns 708 | 709 | 710 | include 711 | source.asp.vb.net 712 | 713 | 714 | 715 | 716 | 717 | source-asp-embedded-scripttag 718 | 719 | begin 720 | (?:^\s+)?(<)(script).*runat=.server[^>]*(>) 721 | captures 722 | 723 | 1 724 | 725 | name 726 | punctuation.definition.tag.html 727 | 728 | 2 729 | 730 | name 731 | entity.name.tag.script.html 732 | 733 | 3 734 | 735 | name 736 | punctuation.definition.tag.html 737 | 738 | 739 | end 740 | (</)(script)(>)(?:\s*$\n)? 741 | name 742 | meta.source.embedded.script-tag 743 | patterns 744 | 745 | 746 | begin 747 | (?<=(>)) 748 | end 749 | (?=</script>) 750 | name 751 | source.asp.embedded.html 752 | patterns 753 | 754 | 755 | include 756 | source.asp.vb.net 757 | 758 | 759 | 760 | 761 | 762 | source-asp-return 763 | 764 | begin 765 | <%= 766 | beginCaptures 767 | 768 | 0 769 | 770 | name 771 | punctuation.section.embedded.begin.asp 772 | 773 | 774 | end 775 | %> 776 | endCaptures 777 | 778 | 0 779 | 780 | name 781 | punctuation.section.embedded.end.asp 782 | 783 | 784 | name 785 | meta.source.embedded.return-value 786 | patterns 787 | 788 | 789 | begin 790 | (?<=<%=) 791 | end 792 | (?=%>) 793 | name 794 | source.asp.embedded.html 795 | patterns 796 | 797 | 798 | include 799 | source.asp.vb.net 800 | 801 | 802 | 803 | 804 | 805 | source-asp-single-line 806 | 807 | begin 808 | <%(=|#|@) 809 | beginCaptures 810 | 811 | 0 812 | 813 | name 814 | punctuation.section.embedded.begin.asp 815 | 816 | 817 | comment 818 | DEBUG 819 | end 820 | %> 821 | endCaptures 822 | 823 | 0 824 | 825 | name 826 | punctuation.section.embedded.end.asp 827 | 828 | 829 | name 830 | meta.source.embedded.single-line 831 | patterns 832 | 833 | 834 | begin 835 | (?<=<%) 836 | end 837 | (?=%>) 838 | name 839 | source.asp.embedded.html 840 | patterns 841 | 842 | 843 | include 844 | source.asp.vb.net 845 | 846 | 847 | 848 | 849 | 850 | string-double-quoted 851 | 852 | begin 853 | " 854 | beginCaptures 855 | 856 | 0 857 | 858 | name 859 | punctuation.definition.string.begin.html 860 | 861 | 862 | end 863 | " 864 | endCaptures 865 | 866 | 0 867 | 868 | name 869 | punctuation.definition.string.end.html 870 | 871 | 872 | name 873 | string.quoted.double.html 874 | patterns 875 | 876 | 877 | include 878 | #embedded-code 879 | 880 | 881 | include 882 | #entities 883 | 884 | 885 | 886 | string-single-quoted 887 | 888 | begin 889 | ' 890 | beginCaptures 891 | 892 | 0 893 | 894 | name 895 | punctuation.definition.string.begin.html 896 | 897 | 898 | end 899 | ' 900 | endCaptures 901 | 902 | 0 903 | 904 | name 905 | punctuation.definition.string.end.html 906 | 907 | 908 | name 909 | string.quoted.single.html 910 | patterns 911 | 912 | 913 | include 914 | #embedded-code 915 | 916 | 917 | include 918 | #entities 919 | 920 | 921 | 922 | tag-generic-attribute 923 | 924 | match 925 | \b([a-zA-Z-:]+) 926 | name 927 | entity.other.attribute-name.html 928 | 929 | tag-id-attribute 930 | 931 | begin 932 | \b(id)\b\s*(=) 933 | captures 934 | 935 | 1 936 | 937 | name 938 | entity.other.attribute-name.id.html 939 | 940 | 2 941 | 942 | name 943 | punctuation.separator.key-value.html 944 | 945 | 946 | end 947 | (?<='|") 948 | name 949 | meta.attribute-with-value.id.html 950 | patterns 951 | 952 | 953 | begin 954 | " 955 | beginCaptures 956 | 957 | 0 958 | 959 | name 960 | punctuation.definition.string.begin.html 961 | 962 | 963 | contentName 964 | meta.toc-list.id.html 965 | end 966 | " 967 | endCaptures 968 | 969 | 0 970 | 971 | name 972 | punctuation.definition.string.end.html 973 | 974 | 975 | name 976 | string.quoted.double.html 977 | patterns 978 | 979 | 980 | include 981 | #embedded-code 982 | 983 | 984 | include 985 | #entities 986 | 987 | 988 | 989 | 990 | begin 991 | ' 992 | beginCaptures 993 | 994 | 0 995 | 996 | name 997 | punctuation.definition.string.begin.html 998 | 999 | 1000 | contentName 1001 | meta.toc-list.id.html 1002 | end 1003 | ' 1004 | endCaptures 1005 | 1006 | 0 1007 | 1008 | name 1009 | punctuation.definition.string.end.html 1010 | 1011 | 1012 | name 1013 | string.quoted.single.html 1014 | patterns 1015 | 1016 | 1017 | include 1018 | #embedded-code 1019 | 1020 | 1021 | include 1022 | #entities 1023 | 1024 | 1025 | 1026 | 1027 | 1028 | tag-stuff 1029 | 1030 | patterns 1031 | 1032 | 1033 | include 1034 | #tag-id-attribute 1035 | 1036 | 1037 | include 1038 | #tag-generic-attribute 1039 | 1040 | 1041 | include 1042 | #string-double-quoted 1043 | 1044 | 1045 | include 1046 | #string-single-quoted 1047 | 1048 | 1049 | 1050 | 1051 | scopeName 1052 | text.html.asp.net 1053 | uuid 1054 | 426BF395-E61E-430F-8E4C-47F2E15C769B 1055 | 1056 | 1057 | --------------------------------------------------------------------------------