Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
iqbalhs committed Sep 9, 2017
1 parent 5e1355a commit 049f5df
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# personal-snippets
My personal snippets for Sublime Text 3
# Personal Snippets
A set of reusable snippets of my own reference for Sublime Text 3 :mouse2:
19 changes: 19 additions & 0 deletions editorconfig.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<snippet>
<content><![CDATA[
# editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false
]]></content>
<tabTrigger>edphp</tabTrigger>
<description>[personal-snippets] php .editorconfig</description>
</snippet>
10 changes: 10 additions & 0 deletions for.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<snippet>
<content><![CDATA[
for (${1:\$i} = ${2:0}; ${1:\$i} < $3; ${1:\$i}) {
${4:# code...}
}
]]></content>
<tabTrigger>for</tabTrigger>
<scope>source.php</scope>
<description>[personal-snippets] php for</description>
</snippet>
10 changes: 10 additions & 0 deletions if.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<snippet>
<content><![CDATA[
<?php if (${1:condition}): ?>
$2
<?php endif; ?>
]]></content>
<tabTrigger>if</tabTrigger>
<scope>text.html</scope>
<description>[personal-snippets] html php if</description>
</snippet>
8 changes: 8 additions & 0 deletions short-print.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
<?= ${1:\$data} ?>
]]></content>
<tabTrigger>=</tabTrigger>
<scope>text.html</scope>
<description>[personal-snippets] short print</description>
</snippet>

0 comments on commit 049f5df

Please sign in to comment.