Skip to content

Instantly share code, notes, and snippets.

@pantasio
Last active December 3, 2015 05:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pantasio/ff957f0370b0e8716e52 to your computer and use it in GitHub Desktop.
Save pantasio/ff957f0370b0e8716e52 to your computer and use it in GitHub Desktop.
[Snippet] Create new snippet
<!-- ####################################
PLEASE SAVE AS WITH DIFFENT NAME NOW
####################################
NAME ROLE
html-tabTrigger.sublime-snippet
put it right location
THANKS
-->
<snippet>
<content><![CDATA[
<div class="$1">
<p>The ${2:cat} was ${3:fast}.</p>
</div><!-- /${1/\*//} -->
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- <tabTrigger>hello</tabTrigger> -->
<tabTrigger>d</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
<!-- You can use multiscope
<scope>source.css, source.less, source.scss, source.stylus</scope>
-->
<!-- Here is a list of scopes to use in Sublime Text 2 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
CoffeeScript: source.coffee
CSS: source.css
D: source.d
Diff: source.diff
Erlang: source.erlang
Go: source.go
GraphViz: source.dot
Groovy: source.groovy
Haskell: source.haskell
HTML: text.html(.basic)
JSP: text.html.jsp
Java: source.java
Java Properties: source.java-props
Java Doc: text.html.javadoc
JSON: source.json
Javascript: source.js
BibTex: source.bibtex
Latex Log: text.log.latex
Latex Memoir: text.tex.latex.memoir
Latex: text.tex.latex
LESS: source.css.less
TeX: text.tex
Lisp: source.lisp
Lua: source.lua
MakeFile: source.makefile
Markdown: text.html.markdown
Multi Markdown: text.html.markdown.multimarkdown
Matlab: source.matlab
Objective-C: source.objc
Objective-C++: source.objc++
OCaml campl4: source.camlp4.ocaml
OCaml: source.ocaml
OCamllex: source.ocamllex
Perl: source.perl
PHP: source.php
Regular Expression(python): source.regexp.python
Python: source.python
R Console: source.r-console
R: source.r
Ruby on Rails: source.ruby.rails
Ruby HAML: text.haml
SQL(Ruby): source.sql.ruby
Regular Expression: source.regexp
RestructuredText: text.restructuredtext
Ruby: source.ruby
SASS: source.sass
Scala: source.scala
Shell Script: source.shell
SQL: source.sql
Stylus: source.stylus
TCL: source.tcl
HTML(TCL): text.html.tcl
Plain text: text.plain
Textile: text.html.textile
XML: text.xml
XSL: text.xml.xsl
YAML: source.yaml -->
<scope>text.html</scope>
<!-- thu vien snippet -->
<!-- https://github.com/joshnh/CSS-Snippets -->
<!-- https://github.com/joshnh/HTML-Snippets -->
<!-- https://github.com/purplefish32/sublime-text-2-wordpress -->
<!-- Bootstrap 3 - Sublime Plugin
https://github.com/JasonMortonNZ/bs3-sublime-plugin
-->
<!-- jQuery Snippets
https://github.com/aaronpowell/sublime-jquery-snippets
-->
<!-- Node.js Snippets
https://github.com/tanepiper/SublimeText-Nodejs
-->
<!-- Angular Snippets
https://github.com/angular-ui/AngularJS-sublime-package
-->
<!-- Laravel’s Blade Snippets
https://github.com/dev4dev/blade-snippets
-->
<!-- LESS Snippets
https://github.com/danro/Less-sublime
-->
<!-- Zurb Snippets
https://github.com/zurb/foundation-5-sublime-snippets
-->
<!-- Ruby on Rails Snippets
https://github.com/tadast/sublime-rails-snippets
-->
<!-- Yii is a high-performance PHP framework best for developing Web 2.0 applications.
https://github.com/filipyev/yii2-snippets
-->
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment