Last active
January 6, 2016 15:37
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
'.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