Skip to content

Instantly share code, notes, and snippets.

@akella
Last active November 29, 2023 13:57
Show Gist options
  • Save akella/9757676 to your computer and use it in GitHub Desktop.
Save akella/9757676 to your computer and use it in GitHub Desktop.
<snippet>
<content><![CDATA[
<!-- begin $1 -->
<div class="$1">
$2
</div>
<!-- end $1 -->
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>di</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html</scope>
</snippet>
@skifgold
Copy link

skifgold commented Nov 7, 2017

For atom
Atom->Snippets...

It will open snippets.cson

for .html:

 '.text.html.basic':
  'semantic div':
    'prefix': 'di'
    'body': '.<!-- begin $1 -->\n
            <div class="$1">\n
            	$2\n
            </div>\n
            <!-- end $1 -->'

for .php:

 '.text.html.php':
  'semantic div':
    'prefix': 'di'
    'body': '<!-- begin $1 -->\n
            <div class="$1">\n
            	$2\n
            </div>\n
            <!-- end $1 -->'

Just copy/paste into the snippets.cson and save file

@abztrakte
Copy link

Спасибо!

@devxom
Copy link

devxom commented Nov 26, 2017

Спасибо.
Адаптировал под vscode https://gist.github.com/devxom/edc3c76235fc050a5ba594f372ca5740

@Nikolasgrizli
Copy link

Спасибо огромное, адаптировал под vs code HAML https://gist.github.com/Nikolasgrizli/13816855947c0ba5124432ae29e91c0b

@AndreyK80
Copy link

thank

@Waidoss
Copy link

Waidoss commented Jan 28, 2019

спасибо!!

@Yakymets049
Copy link

крутая штука :) спасибо

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment