Skip to content

Instantly share code, notes, and snippets.

@vshap
Last active January 6, 2016 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vshap/f42b10bcc1a4155de81f to your computer and use it in GitHub Desktop.
Save vshap/f42b10bcc1a4155de81f to your computer and use it in GitHub Desktop.
Autocomment for begin/end of div's. Based on html-dicomment.sublime-snippet from Akella https://gist.github.com/akella/9757676
#
'.text.html':
'Div comment':
'prefix': 'di'
'body':
'<!-- begin $1 --> \n<div class="$1"> \n$2 \n</div> \n<!-- end $1 -->'
# Add this code to snippets.cson of Atom
#
# Type di in your .html file
# press <Tab>, input class name
#
# Result of execution:
#
# <!-- begin main -->
# <div class="main">
#
# </div>
# <!-- end main -->
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment