PKS4=-WW README.txtA package containing snippets for various languages. Check the repo for exact contents.PKR4=//CSharp/Property RW.tmSnippet content ${1:public} ${2:Type} ${3:PropertyName} { get { return ${4:${3/./\l$0/}}; } set { ${5:$4} = value; } } name Property (Read-Write) scope source.cs tabTrigger rw uuid F9184AE4-4ECF-4D4F-8D18-87CC28EFE0B8 PKR4='CSharp/If.tmSnippet content if (${1:Condition}) { $0 } name If scope source.cs tabTrigger if uuid F5AEFF89-5CBB-4079-8FEA-F4AC5D2F390A PKR4=3//CSharp/Interface.tmSnippet content /// <summary> /// Description of interface goes here /// </summary> interface ${1:InterfaceName} { $0 } name Interface scope source.cs tabTrigger interface uuid CD2EA246-E142-47E1-890F-599616512764 PKR4=Sduu"CSharp/Try Catch Finally.tmSnippet content try { ${2:// Code to try here} } catch (${1:System.Exception} e) { ${3:// Code to handle exception here} } finally { ${0:// Code to execute after try (and possibly catch) here} } name Try / Catch / Finally scope source.cs tabTrigger try uuid 9E4C6824-F9E0-4B64-B1F6-8DCF5F610DAC PKR4=J)CSharp/Switch.tmSnippet content switch (${1:Expression}) { case ${2:Constant}: $0 break; } name Switch scope source.cs tabTrigger switch uuid 5AA72CF4-2C2D-494F-B56C-832E141A7132 PKR4=?CSharp/Writeline.tmSnippet content Console.WriteLine($1); $0 name Console.WriteLine scope source.cs tabTrigger writeline uuid 00E7B505-C6A2-48C3-ABBE-30CBD8ABAB89 PKR4=''CSharp/Class.tmSnippet content /// <summary> /// Description of class goes here /// </summary> ${1:public} class ${2:ClassName} { $0 } name Class scope source.cs tabTrigger class uuid B20CDBF9-F842-462E-BA33-AE671E0D3D25 PKR4=~CSharp/Else If.tmSnippet content else if (${1:Condition}) { $0 } name Else If scope source.cs tabTrigger elseif uuid F8D557E9-81DE-45FF-A089-F2B3F8CD6B4F PKR4=CSharp/ForEach.tmSnippet content foreach (${1:Type} in ${2:Collection}) { $0 } name Foreach scope source.cs tabTrigger foreach uuid C1F69B97-3E59-4D60-A355-DF2DB4D2EF5C PKR4=CSharp/While.tmSnippet content while (${1:Condition}) { $0 } name While scope source.cs tabTrigger while uuid 2C7396D8-DBE4-4D5D-A659-E5CC2BA19CCE PKR4=keeCSharp/Delegate.tmSnippet content /// <summary> /// Description of delegate goes here /// </summary> public delegate ${1:ReturnType} ${2:DelegateName}(${3:ParameterType} ${4:ParameterName}); $0 name Delegate scope source.cs tabTrigger delegate uuid EED18275-324E-4176-8806-89938FE0146B PKR4=QCSharp/Case.tmSnippet content case ${1:Constant}: $0 break; name Case scope source.cs tabTrigger case uuid 5EC2C939-D491-4EF4-B53E-EA87FCED249D PKR4=gzddCSharp/Private Method.tmSnippet content /// <summary> /// Description of private method goes here /// </summary> private ${1:ReturnType} ${2:MethodName}(${3:ParameterType} ${4:ParameterName}) { $0 } name Private Method scope source.cs tabTrigger pm uuid 52788632-ECB3-4F3F-9423-03E0E35B20C8 PKR4=g+bbCSharp/Public Method.tmSnippet content /// <summary> /// Description of public method goes here /// </summary> public ${1:ReturnType} ${2:MethodName}(${3:ParameterType} ${4:ParameterName}) { $0 } name Public Method scope source.cs tabTrigger pum uuid 58303EDB-6E36-4222-9422-4104932A8E51 PKR4=/,,CSharp/Struct.tmSnippet content /// <summary> /// Description of struct goes here /// </summary> ${1:public} struct ${2:StructName} { $0 } name Struct scope source.cs tabTrigger struct uuid C1C6324B-5AA9-4FD7-967F-CC518A02B137 PKR4=<,zCSharp/Default.tmSnippet content default: $0 break; name Default scope source.cs tabTrigger default uuid 1C9A1C2A-112F-44C7-AD51-DEE6BBF0FC35 PKR4=CSharp/Using.tmSnippet content using ${1:System}; name Using scope source.cs tabTrigger us uuid A0D68D92-F7D2-4B35-ADC4-0AECC0F54EF6 PKR4=#qIICSharp/Main Method.tmSnippet content /// <summary> /// The main entry point for the application /// </summary> [STAThread] public static void Main(string[] args) { $0 } name Main Method scope source.cs tabTrigger main uuid 6915B574-5910-4255-802F-FD995500A0B2 PKR4=+\%CSharp/Property RO.tmSnippet content ${1:public} ${2:Type} ${3:PropertyName} { get { return ${4:${3/./\l$0/}}; } } name Property (Read-Only) scope source.cs tabTrigger r uuid 18DBF19B-30B1-4218-8B4F-1D940A07D93B PKR4=1oCSharp/For.tmSnippet content for (${1:Initializer}; ${2:Condition}; ${3:Update}) { $0 } name For scope source.cs tabTrigger for uuid EF1EA22E-9591-4267-BED6-5CA9E8B74661 PKR4=[sxx CSharp/Singleton Class.tmSnippet content /// <summary> /// Description of singleton class goes here /// </summary> public class ${1:Singleton} { private static ${1:Singleton} ${3:${2/./\l$0/}}; private ${1:Singleton}() { } public static ${1:Singleton} ${2:Instance} { get { if (${3:${2/./\l$0/}} == null) { ${3:${2/./\l$0/}} = new ${1:Singleton}(); } return ${3:${2/./\l$0/}}; } } } name Singleton Class scope source.cs tabTrigger sinc uuid F1BB288E-0BAD-4833-BB6E-1C7E958041F6 PKR4=oCSharp/Else.tmSnippet content else { $0 } name Else scope source.cs tabTrigger else uuid D528787E-50F4-484A-B93C-32A3F6808B85 PKR4=YAACSharp/README.txtE-Text Editor has some C# snippets, now SublimeText has them too!PKR4=,eCSharp/Do While.tmSnippet content do { $0 } while (${1:Condition}); name Do While scope source.cs tabTrigger do uuid 0B5657B1-73AA-4989-B586-4E8C414C600B PKR4=H:CSharp/Namespace.tmSnippet content namespace ${1:NamespaceName} { $0 } name Namespace scope source.cs tabTrigger namespace uuid 6E186131-8557-4982-91D8-EDBCAA1511B2 PKS4=T(bb!XSL/template name param.tmSnippet scope text.xml.xsl content <xsl:template name="${1:QName}"${2: mode="${3:QName}"}> <xsl:param name="${4:QName}"${5: select="${6:Expr}"}/> ${7} </xsl:template> name template name param tabTrigger temp uuid B31C2268-F9B6-4153-8663-A24DA53C19F5 PKS4=+_XSL/fallback.tmSnippet scope text.xml.xsl content <xsl:fallback> ${1} <xsl:fallback>} name fallback tabTrigger fallback uuid 165DAA88-B784-4066-820B-35B6C10D58B5 PKS4=wb--XSL/attribute___.tmSnippet scope text.xml.xsl content <xsl:attribute name="${1:QName}"${2: namespace="${3:uri}"}>${4:«template body»}</xsl:attribute> name attribute tabTrigger attr uuid E40BD0A7-B0BE-41B8-A6C3-6E8A40AD113C PKS4=XSL/param.tmSnippet scope text.xml.xsl content <xsl:param name="${1:QName}"${2: select="${3:Expr}"}/> name param tabTrigger param uuid D85FD15F-6D01-4CC8-8F78-994348FF97F6 PKS4=HPPXSL/stylesheet exslt.tmSnippet scope text.xml.xsl content <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" extension-element-prefixes="exsl" > <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:template match="${1:Expr}"> ${2} </xsl:template> ${3} </xsl:stylesheet> name stylesheet exslt common tabTrigger style uuid 13F2832D-9ED7-4C91-A990-EC5666FC701A PKS4=D/y3cc"XSL/template match param.tmSnippet scope text.xml.xsl content <xsl:template match="${1:Expr}"${2: mode="${3:QName}"}> <xsl:param name="${4:QName}"${5: select="${6:Expr}"}/> ${7} </xsl:template> name template match param tabTrigger temp uuid BD452303-50C6-450E-B79E-457934D0CBF7 PKS4=lXSL/copy.tmSnippet scope text.xml.xsl content <xsl:copy ${1:use-attribute-sets="${2:list-of-QNames}"}> ${0} </xsl:copy> name copy tabTrigger copy uuid B6951038-468B-4159-8CED-65E4166A2D95 PKS4=`~XSL/transform.tmSnippet scope text.xml.xsl content <?xml version="1.0" encoding="UTF-8"?> <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:template match="${1:Expr}"> ${2} </xsl:template> ${3} </xsl:transform> name transform tabTrigger transform uuid 8BF6163A-F381-48E7-9856-2D72059715AA PKS4=HIXSL/copy-of.tmSnippet scope text.xml.xsl content <xsl:copy-of select="${1:Expr}"/> name copy-of tabTrigger copyof uuid 7F1C7DFF-2390-4B4A-B47D-562685A30516 PKS4= XSL/README.txtTodd Ditchendorf's (http://www.ditchnet.org/) made a collection of TextMate snippets for XSLT 1.1. URL : http://www.ditchnet.org/wp/2006/12/19/textmate-changed-my-life/ I've made them available for Sublime Text.PKS4=:FXSL/template name.tmSnippet scope text.xml.xsl content <xsl:template name="${1:QName}"${2: mode="${3:QName}"}> ${4} </xsl:template> name template name tabTrigger temp uuid F358257D-355D-4762-9198-CF3282EF0C6E PKS4= )XSL/value-of.tmSnippet scope text.xml.xsl content <xsl:value-of select="${1:Expr}"${2: disable-output-escaping="${3:«yes»|«no»}"}/> name value-of tabTrigger value uuid 3790B249-5475-4638-A674-3FD4ECC967DF PKS4=%SS&XSL/call-template with-param.tmSnippet scope text.xml.xsl content <xsl:call-template name="${1:QName}"> <xsl:with-param name="${2:QName}" select="${3:Expr}"/> </xsl:call-template> name call-template with-param tabTrigger call uuid 2C1D7DED-ACFA-4EB9-B46C-4864913665D3 PKS4=W5XSL/document.tmSnippet scope text.xml.xsl content <xsl:document href="${1:url}" method="${2:«xml»|«html»|«text»|«QName»}" version="${3:1.0}" encoding="${4:UTF-8}" indent="${5:«yes»|«no»}" ${6:omit-xml-declaration="${7:«yes»|«no»}" }${8:standalone="${9:«yes»|«no»}" }${10:media-type="${11:application/xml}" }${12:doctype-public="${13:-//W3C//DTD XHTML 1.0 Strict//EN}" }${14:doctype-system="${15:http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd}" }${16:cdata-section-elements="${17:list-of-QNames}"}/> name document tabTrigger document uuid 149136EB-9758-4E87-9BA2-7B93A385157E PKS4=o]]XSL/choose.tmSnippet scope text.xml.xsl content <xsl:choose> <xsl:when test="${1:Expr}"> ${2} </xsl:when> ${3: <xsl:otherwise> ${4} </xsl:otherwise> }</xsl:choose> name choose tabTrigger choose uuid 294D8939-33A4-4DA1-BA2E-82F3D8D29537 PKS4=- XSL/apply-templates.tmSnippet scope text.xml.xsl content <xsl:apply-templates${1: select="${2:Expr}"}${3: mode="${4:QName}"}/> name apply-templates tabTrigger apply uuid 67AA3601-F989-4767-9151-A3A7D26D3FF9 PKS4=A5XSL/variable___.tmSnippet scope text.xml.xsl content <xsl:variable name="${1:QName}"> ${0} </xsl:variable> name variable... tabTrigger var uuid AA0F0473-09AB-4F2A-BB95-FB6566AD4AA9 PKS4=ITٿXSL/include.tmSnippet scope text.xml.xsl content <xsl:include href="${1:uri}"/> name include tabTrigger include uuid 368F91B9-2F52-49A7-A706-3937A54A7D1D PKS4=a11XSL/decimal-format.tmSnippet scope text.xml.xsl content <xsl:decimal-format ${1:name="${2:QName}" }${3:decimal-separator="${4:char}" }${5:grouping-separator="${6:char}" }${7:infinity="${8:string}" }${9:minus-sign="${10:char}" }${11:NaN="${12:string}" }${13:percent="${14:char}" }${15:per-mile="${16:char}" }${17:zero-digit="${18:char}" }${19:digit="${20:char}" }${21:pattern-separator="${22:char}"}/> name decimal-format tabTrigger decimal uuid 4CC00B22-D855-49C2-AECF-DCE6F796AD90 PKS4=PD,XSL/preserve-space.tmSnippet scope text.xml.xsl content <xsl:preserve-space elements="${1:list-of-NameTests}"/> name preserve-space tabTrigger preserve uuid C4A6F08A-4B86-4984-9CB2-CF2C641A9FE6 PKS4=W4)XSL/call-template.tmSnippet scope text.xml.xsl content <xsl:call-template name="${1:QName}"/> name call-template tabTrigger call uuid 28365406-5D9F-4450-A729-73C033053531 PKS4=GoXSL/variable.tmSnippet scope text.xml.xsl content <xsl:variable name="${1:QName}" select="${2:Expr}"/> name variable tabTrigger var uuid BADB3CD2-2EB7-4FD7-95D4-DBCA4958697A PKS4= kXSL/sort.tmSnippet scope text.xml.xsl content <xsl:sort select="${1:Expr}" ${2:data-type="${3:«text»|«number»|QName}" }${4:order="${5:«ascending»|«descending»}" }${6:case-order="${7:«upper-first»|«lower-first»}" }${8:lang="${9:lang-code}"}/> name sort tabTrigger sort uuid 7B87AA61-ECA0-48B8-A209-C772408EE1A8 PKS4=nXSL/template match.tmSnippet scope text.xml.xsl content <xsl:template match="${1:Expr}"${2: mode="${3:QName}"}> ${4} </xsl:template> name template match tabTrigger temp uuid 97D4AC4E-C592-4435-88DC-912E1D76B429 PKS4=xXSL/key.tmSnippet scope text.xml.xsl content <xsl:key name="${1:QName}" match="${2:Pattern}" use="${3:Expr}"/> name key tabTrigger key uuid 761AE866-962F-47A5-A29E-B95553908974 PKS4=%22$XSL/processing-instruction.tmSnippet scope text.xml.xsl content <xsl:processing-instruction name="{$1:NCName}"> ${1} </xsl:processing-instruction> name processing-instruction tabTrigger processing uuid 9BF37CED-24E0-4AAD-92D6-847E24E25BA8 PKS4=>#T-XSL/param___.tmSnippet scope text.xml.xsl content <xsl:param name="${1:QName}"> ${0} </xsl:param> name param... tabTrigger param uuid 287E5A40-07AF-4EE8-9C84-E1D49D4AA91D PKS4=LQXSL/if.tmSnippet scope text.xml.xsl content <xsl:if test="${1:Expr}"> ${2} </xsl:if> name if tabTrigger if uuid C6EDA5FF-4E6B-4998-A66D-31BB9668F8AD PKS4=(XSL/output.tmSnippet scope text.xml.xsl content <xsl:output method="${2:«xml»|«html»|«text»|«QName»}" version="${3:1.0}" encoding="${4:UTF-8}" indent="${5:«yes»|«no»}" ${6:omit-xml-declaration="${7:«yes»|«no»}" }${8:standalone="${9:«yes»|«no»}" }${10:media-type="${11:application/xml}" }${12:doctype-public="${13:-//W3C//DTD XHTML 1.0 Strict//EN}" }${14:doctype-system="${15:http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd}" }${16:cdata-section-elements="${17:list-of-QNames}"}/> name output tabTrigger output uuid AF92E151-3079-4093-ACB7-AF99BEC678E6 PKS4=}BXSL/when.tmSnippet scope text.xml.xsl content <xsl:when test="${1:Expr}"> ${0} </xsl:when> name when tabTrigger when uuid BAB2DA56-D79B-4338-824F-C667992FED2C PKS4= H8XSL/comment.tmSnippet scope text.xml.xsl content <xsl:comment> ${1} </xsl:comment> name comment tabTrigger comment uuid CA851E65-EC8A-4931-A96F-90D455D6EEAB PKS4=,k"XSL/stylesheet exslt all.tmSnippet scope text.xml.xsl content <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" ${1:xmlns:date="http://exslt.org/dates-and-times" }${2:xmlns:dynamic="http://exslt.org/dynamic" }${3:xmlns:math="http://exslt.org/math" }${4:xmlns:regexp="http://exslt.org/regular-expressions" }${5:xmlns:sets="http://exslt.org/sets" }${6:xmlns:str="http://exslt.org/strings" }extension-element-prefixes="exsl${7: date}${8: dynamic}${9: math}${10: regexp}${11: sets}${12: str}" > <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:template match="${13:Expr}"> ${14} </xsl:template> ${15} </xsl:stylesheet> name stylesheet exslt all tabTrigger style uuid FACB9763-C4F6-433D-9201-B1D76F40C1C8 PKS4=^wwXSL/script.tmSnippet scope text.xml.xsl content <xsl:script implements-prefix="${1:NCName}" language="${2:«ecmascript»|«javascript»|«java»|QName}" src="${3:uri}" archive="${4:list-of-uris}"> ${5} </xsl:script> name script tabTrigger script uuid 427B3171-E122-402E-BABD-A02C8AD1A2AC PKS4=n\  XSL/with-param___.tmSnippet scope text.xml.xsl content <xsl:with-param name="${1:QName}"> ${0} </xsl:with-param> name with-param... tabTrigger with uuid 49E20DCD-FD44-4AD4-9355-654D73A3DDF7 PKS4=`%PXSL/otherwise.tmSnippet scope text.xml.xsl content <xsl:otherwise> ${1} </xsl:otherwise> name otherwise tabTrigger otherwise uuid 40994788-B735-4060-8BAE-1E317CB6E8AA PKS4=I%5XSL/with-param.tmSnippet scope text.xml.xsl content <xsl:with-param name="${1:QName}" select="${2:Expr}"/> name with-param tabTrigger with uuid 38EA6DAA-AECA-43E9-A138-DCF4289319C3 PKS4=ȪII&XSL/apply-imports with-param.tmSnippet scope text.xml.xsl content <xsl:apply-imports> <xsl:with-param name="${1:QName}" select="${2:Expr}"/> </xsl:apply-imports> name apply-imports with-param tabTrigger applyimports uuid 8C476EA9-68B8-4822-8814-1CDE438B2306 PKS4=nXXSL/import.tmSnippet scope text.xml.xsl content <xsl:import href="${1:uri}"/> name import tabTrigger import uuid EB0CE0E1-58B1-4A89-9355-200212B42059 PKS4=ķXSL/document___.tmSnippet scope text.xml.xsl content <xsl:document href="${1:url}" method="${2:«xml»|«html»|«text»|«QName»}" version="${3:1.0}" encoding="${4:UTF-8}" indent="${5:«yes»|«no»}" ${6:omit-xml-declaration="${7:«yes»|«no»}" }${8:standalone="${9:«yes»|«no»}" }${10:media-type="${11:application/xml}" }${12:doctype-public="${13:-//W3C//DTD XHTML 1.0 Strict//EN}" }${14:doctype-system="${15:http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd}" }${16:cdata-section-elements="${17:list-of-QNames}"} > ${0} </xsl:document> name document... tabTrigger document uuid 05A8E380-C820-407E-9C53-D789782110A3 PKS4=lD>ww(XSL/apply-templates with-param.tmSnippet scope text.xml.xsl content <xsl:apply-templates${1: select="${2:Expr}"}${3: mode="${4:QName}"}> <xsl:with-param name="${5:QName}" select="${6:Expr}"/> </xsl:apply-templates> name apply-templates with-param tabTrigger apply uuid 692E5E25-8185-4BCA-9002-22345B89A73E PKS4=<[XSL/cdata.tmSnippet scope text.xml.xsl content <![CDATA[${1}]]> name cdata tabTrigger cdata uuid 83878BE5-2CF6-43F6-A126-7575A9682217 PKS4=XSL/apply-imports.tmSnippet scope text.xml.xsl content <xsl:apply-imports/> name apply-imports tabTrigger applyimports uuid 47C935D3-1918-4446-B243-9052D0E0F957 PKS4=X==XSL/namespace-alias.tmSnippet scope text.xml.xsl content <xsl:namespace-alias stylesheet-prefix="${1:NCName|«#default»}" result-prefix="${2:NCName|«#default»}"/> name namespace-alias tabTrigger namespace uuid 24EF2942-D22D-4329-899E-8CECFBE555A1 PKS4=FpXSL/message.tmSnippet scope text.xml.xsl content <xsl:message${1:terminate="${2:«yes»|«no»}"}> ${3} </xsl:message> name message tabTrigger message uuid 47BA82F1-58C1-45F0-877B-FD4EBFF2423E PKS4=#XSL/for-each.tmSnippet scope text.xml.xsl content <xsl:for-each select="${1:Expr}"> ${2} </xsl:for-each> name for-each tabTrigger for uuid 42018D53-DAC9-40EA-BEC3-7048D0BE15E1 PKS4=!.XSL/text.tmSnippet scope text.xml.xsl content <xsl:text${1: disable-output-escaping="${2:«yes»|«no»}"}>${0}</xsl:text> name text tabTrigger text uuid 866BDFE7-09B2-4825-AC1B-5891EDB643E0 PKS4=rXSL/number.tmSnippet scope text.xml.xsl content <xsl:number level="${1:«single»|«multiple»|«any»}" count="${2:Pattern}" from="${3:Pattern}" value="${4:Expr}" format="${5:format-string}" lang="${6:language-code}" letter-value="${7:«alphabetic»|«traditional»}" grouping-separator="${8:char}" grouping-size="${9:number}"/> name number tabTrigger number uuid 571F2B6B-E44C-4295-85F5-F0FF94CDB7FC PKS4=S%XSL/stylesheet.tmSnippet scope text.xml.xsl content <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:template match="${1:Expr}"> ${2} </xsl:template> ${3} </xsl:stylesheet> name stylesheet tabTrigger style uuid 4D39184F-7E7F-43A3-88FC-3663C431FCB7 PKS4=65XSL/element.tmSnippet scope text.xml.xsl content <xsl:element name="${1:QName}"${2: namespace="${3:uri}"}> ${4} </xsl:element> name element tabTrigger element uuid DA9E9BD5-3A88-440F-9205-77FB7FB653CE PKS4=XSL/strip-space.tmSnippet scope text.xml.xsl content <xsl:strip-space elements="${1:list-of-NameTests}"/> name strip-space tabTrigger strip uuid 0A6B487B-CB56-4CEE-8E24-188884AC1EF3 PKS4=wzAAXSL/attribute-set.tmSnippet scope text.xml.xsl content <xsl:attribute-set name="${1:QName}"${2: use-attribute-sets="${3:list-of-QNames}"}> ${0} </xsl:attribute-set> name attribute-set tabTrigger attrset uuid 8A8C732E-BCC4-4C87-B142-897499814ACD PKS4=\\Erlang/export.sublime-snippet PKS4=KUErlang/receive.sublime-snippet ${5:body} }${6:after ${7:expression} -> ${8:body} }end]]> PKS4=+ooErlang/module.sublime-snippet PKS4=LTqqErlang/function.sublime-snippet ${4:body}.]]> PKS4=/'Erlang/gen_fsm_template.sublime-snippet %%% Description : %%% %%% Created : 2 Mar 2007 by my name %%%------------------------------------------------------------------- -module(gen_fsm_template). -behaviour(gen_fsm). %% API -export([start_link/0]). %% gen_fsm callbacks -export([init/1, state_name/2, state_name/3, handle_event/3, handle_sync_event/4, handle_info/3, terminate/3, code_change/4]). -define(SERVER, ?MODULE). %%==================================================================== %% API %%==================================================================== %%-------------------------------------------------------------------- %% Function: start_link() -> ok,Pid} | ignore | {error,Error} %% Description:Creates a gen_fsm process which calls Module:init/1 to %% initialize. To ensure a synchronized start-up procedure, this function %% does not return until Module:init/1 has returned. %%-------------------------------------------------------------------- start_link() -> gen_fsm:start_link({local, ?SERVER}, ?MODULE, [], []). %%==================================================================== %% gen_fsm callbacks %%==================================================================== %%-------------------------------------------------------------------- %% Function: init(Args) -> {ok, StateName, State} | %% {ok, StateName, State, Timeout} | %% ignore | %% {stop, StopReason} %% Description:Whenever a gen_fsm is started using gen_fsm:start/[3,4] or %% gen_fsm:start_link/3,4, this function is called by the new process to %% initialize. %%-------------------------------------------------------------------- init([]) -> {ok, state_name, nobody}. %%-------------------------------------------------------------------- %% Function: %% state_name(Event, State) -> {next_state, NextStateName, NextState}| %% {next_state, NextStateName, %% NextState, Timeout} | %% {stop, Reason, NewState} %% Description:There should be one instance of this function for each possible %% state name. Whenever a gen_fsm receives an event sent using %% gen_fsm:send_event/2, the instance of this function with the same name as %% the current state name StateName is called to handle the event. It is also %% called if a timeout occurs. %%-------------------------------------------------------------------- state_name(_Event, State) -> {next_state, state_name, State}. %%-------------------------------------------------------------------- %% Function: %% state_name(Event, From, State) -> {next_state, NextStateName, NextState} | %% {next_state, NextStateName, %% NextState, Timeout} | %% {reply, Reply, NextStateName, NextState}| %% {reply, Reply, NextStateName, %% NextState, Timeout} | %% {stop, Reason, NewState}| %% {stop, Reason, Reply, NewState} %% Description: There should be one instance of this function for each %% possible state name. Whenever a gen_fsm receives an event sent using %% gen_fsm:sync_send_event/2,3, the instance of this function with the same %% name as the current state name StateName is called to handle the event. %%-------------------------------------------------------------------- state_name(_Event, _From, State) -> Reply = ok, {reply, Reply, state_name, State}. %%-------------------------------------------------------------------- %% Function: %% handle_event(Event, StateName, State) -> {next_state, NextStateName, %% NextState} | %% {next_state, NextStateName, %% NextState, Timeout} | %% {stop, Reason, NewState} %% Description: Whenever a gen_fsm receives an event sent using %% gen_fsm:send_all_state_event/2, this function is called to handle %% the event. %%-------------------------------------------------------------------- handle_event(_Event, StateName, State) -> {next_state, StateName, State}. %%-------------------------------------------------------------------- %% Function: %% handle_sync_event(Event, From, StateName, %% State) -> {next_state, NextStateName, NextState} | %% {next_state, NextStateName, NextState, %% Timeout} | %% {reply, Reply, NextStateName, NextState}| %% {reply, Reply, NextStateName, NextState, %% Timeout} | %% {stop, Reason, NewState} | %% {stop, Reason, Reply, NewState} %% Description: Whenever a gen_fsm receives an event sent using %% gen_fsm:sync_send_all_state_event/2,3, this function is called to handle %% the event. %%-------------------------------------------------------------------- handle_sync_event(Event, From, StateName, State) -> Reply = ok, {reply, Reply, StateName, State}. %%-------------------------------------------------------------------- %% Function: %% handle_info(Info,StateName,State)-> {next_state, NextStateName, NextState}| %% {next_state, NextStateName, NextState, %% Timeout} | %% {stop, Reason, NewState} %% Description: This function is called by a gen_fsm when it receives any %% other message than a synchronous or asynchronous event %% (or a system message). %%-------------------------------------------------------------------- handle_info(_Info, StateName, State) -> {next_state, StateName, State}. %%-------------------------------------------------------------------- %% Function: terminate(Reason, StateName, State) -> void() %% Description:This function is called by a gen_fsm when it is about %% to terminate. It should be the opposite of Module:init/1 and do any %% necessary cleaning up. When it returns, the gen_fsm terminates with %% Reason. The return value is ignored. %%-------------------------------------------------------------------- terminate(_Reason, _StateName, _State) -> ok. %%-------------------------------------------------------------------- %% Function: %% code_change(OldVsn, StateName, State, Extra) -> {ok, StateName, NewState} %% Description: Convert process state when code is changed %%-------------------------------------------------------------------- code_change(_OldVsn, StateName, State, _Extra) -> {ok, StateName, State}. %%-------------------------------------------------------------------- %%% Internal functions %%-------------------------------------------------------------------- ]]> PKS4==*Erlang/gen_server_template.sublime-snippet %%% Description : %%% %%% Created : 2 Mar 2007 by my name %%%------------------------------------------------------------------- -module(). -behaviour(gen_server). %% API -export([start_link/0]). %% gen_server callbacks -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(state, {}). %%==================================================================== %% API %%==================================================================== %%-------------------------------------------------------------------- %% Function: start_link() -> {ok,Pid} | ignore | {error,Error} %% Description: Starts the server %%-------------------------------------------------------------------- start_link() -> gen_server:start_link({local, ?SERVER}, ?MODULE, [], []). %%==================================================================== %% gen_server callbacks %%==================================================================== %%-------------------------------------------------------------------- %% Function: init(Args) -> {ok, State} | %% {ok, State, Timeout} | %% ignore | %% {stop, Reason} %% Description: Initiates the server %%-------------------------------------------------------------------- init([]) -> {ok, #state{}}. %%-------------------------------------------------------------------- %% Function: %% handle_call(Request, From, State) -> {reply, Reply, State} | %% {reply, Reply, State, Timeout} | %% {noreply, State} | %% {noreply, State, Timeout} | %% {stop, Reason, Reply, State} | %% {stop, Reason, State} %% Description: Handling call messages %%-------------------------------------------------------------------- handle_call(_Request, _From, State) -> Reply = ok, {reply, Reply, State}. %%-------------------------------------------------------------------- %% Function: handle_cast(Msg, State) -> {noreply, State} | %% {noreply, State, Timeout} | %% {stop, Reason, State} %% Description: Handling cast messages %%-------------------------------------------------------------------- handle_cast(_Msg, State) -> {noreply, State}. %%-------------------------------------------------------------------- %% Function: handle_info(Info, State) -> {noreply, State} | %% {noreply, State, Timeout} | %% {stop, Reason, State} %% Description: Handling all non call/cast messages %%-------------------------------------------------------------------- handle_info(_Info, State) -> {noreply, State}. %%-------------------------------------------------------------------- %% Function: terminate(Reason, State) -> void() %% Description: This function is called by a gen_server when it is about to %% terminate. It should be the opposite of Module:init/1 and do any necessary %% cleaning up. When it returns, the gen_server terminates with Reason. %% The return value is ignored. %%-------------------------------------------------------------------- terminate(_Reason, _State) -> ok. %%-------------------------------------------------------------------- %% Func: code_change(OldVsn, State, Extra) -> {ok, NewState} %% Description: Convert process state when code is changed %%-------------------------------------------------------------------- code_change(_OldVsn, State, _Extra) -> {ok, State}. %%-------------------------------------------------------------------- %%% Internal functions %%-------------------------------------------------------------------- ]]> PKS4=+5$Erlang/case.sublime-snippet ${5:body} end ]]> PKS4=-WW README.txtPKR4=//CSharp/Property RW.tmSnippetPKR4='CSharp/If.tmSnippetPKR4=3//CSharp/Interface.tmSnippetPKR4=Sduu"FCSharp/Try Catch Finally.tmSnippetPKR4=J) CSharp/Switch.tmSnippetPKR4=?" CSharp/Writeline.tmSnippetPKR4=''4CSharp/Class.tmSnippetPKR4=~CSharp/Else If.tmSnippetPKR4=CSharp/ForEach.tmSnippetPKR4=CSharp/While.tmSnippetPKR4=keeCSharp/Delegate.tmSnippetPKR4=QRCSharp/Case.tmSnippetPKR4=gzddTCSharp/Private Method.tmSnippetPKR4=g+bbCSharp/Public Method.tmSnippetPKR4=/,, CSharp/Struct.tmSnippetPKR4=<,z"CSharp/Default.tmSnippetPKR4=$CSharp/Using.tmSnippetPKR4=#qII&CSharp/Main Method.tmSnippetPKR4=+\%k)CSharp/Property RO.tmSnippetPKR4=1o+CSharp/For.tmSnippetPKR4=[sxx -CSharp/Singleton Class.tmSnippetPKR4=o1CSharp/Else.tmSnippetPKR4=YAAr3CSharp/README.txtPKR4=,e3CSharp/Do While.tmSnippetPKR4=H:5CSharp/Namespace.tmSnippetPKS4=T(bb!8XSL/template name param.tmSnippetPKS4=+_:XSL/fallback.tmSnippetPKS4=wb--<XSL/attribute___.tmSnippetPKS4=1?XSL/param.tmSnippetPKS4=HPP[AXSL/stylesheet exslt.tmSnippetPKS4=D/y3cc"DXSL/template match param.tmSnippetPKS4=lGXSL/copy.tmSnippetPKS4=`~IXSL/transform.tmSnippetPKS4=HILXSL/copy-of.tmSnippetPKS4= OXSL/README.txtPKS4=:FPXSL/template name.tmSnippetPKS4= )gRXSL/value-of.tmSnippetPKS4=%SS&TXSL/call-template with-param.tmSnippetPKS4=W5MWXSL/document.tmSnippetPKS4=o]]/[XSL/choose.tmSnippetPKS4=- ]XSL/apply-templates.tmSnippetPKS4=A5 `XSL/variable___.tmSnippetPKS4=ITٿEbXSL/include.tmSnippetPKS4=a11]dXSL/decimal-format.tmSnippetPKS4=PD,gXSL/preserve-space.tmSnippetPKS4=W4)jXSL/call-template.tmSnippetPKS4=Go1lXSL/variable.tmSnippetPKS4= k]nXSL/sort.tmSnippetPKS4=n!qXSL/template match.tmSnippetPKS4=xysXSL/key.tmSnippetPKS4=%22$uXSL/processing-instruction.tmSnippetPKS4=>#T-xXSL/param___.tmSnippetPKS4=LQLzXSL/if.tmSnippetPKS4=(f|XSL/output.tmSnippetPKS4=}B/XSL/when.tmSnippetPKS4= H8SXSL/comment.tmSnippetPKS4=,k"uXSL/stylesheet exslt all.tmSnippetPKS4=^wwfXSL/script.tmSnippetPKS4=n\  XSL/with-param___.tmSnippetPKS4=`%PRXSL/otherwise.tmSnippetPKS4=I%5~XSL/with-param.tmSnippetPKS4=ȪII&XSL/apply-imports with-param.tmSnippetPKS4=nX>XSL/import.tmSnippetPKS4=ķRXSL/document___.tmSnippetPKS4=lD>ww(VXSL/apply-templates with-param.tmSnippetPKS4=<[XSL/cdata.tmSnippetPKS4=XSL/apply-imports.tmSnippetPKS4=X==6XSL/namespace-alias.tmSnippetPKS4=FpXSL/message.tmSnippetPKS4=#XSL/for-each.tmSnippetPKS4=!.)XSL/text.tmSnippetPKS4=rvXSL/number.tmSnippetPKS4=S%XSL/stylesheet.tmSnippetPKS4=65XSL/element.tmSnippetPKS4=XSL/strip-space.tmSnippetPKS4=wzAA:XSL/attribute-set.tmSnippetPKS4=\\Erlang/export.sublime-snippetPKS4=KUKErlang/receive.sublime-snippetPKS4=+oo1Erlang/module.sublime-snippetPKS4=LTqqۺErlang/function.sublime-snippetPKS4=/'Erlang/gen_fsm_template.sublime-snippetPKS4==*Erlang/gen_server_template.sublime-snippetPKS4=+5$Erlang/case.sublime-snippetPKTTSg