Skip to content

Commit

Permalink
blah blah
Browse files Browse the repository at this point in the history
  • Loading branch information
iamntz committed Mar 8, 2014
1 parent c254444 commit 0b1360d
Show file tree
Hide file tree
Showing 11 changed files with 111 additions and 138 deletions.
15 changes: 15 additions & 0 deletions PHP/PHPUnit_Framework_TestCase.sublime-snippet
@@ -0,0 +1,15 @@
<snippet>
<!-- Example: Hello, ${1:this} is a ${2:snippet}. -->
<content><![CDATA[
class ${1:${TM_FILENAME/(.+)\..+/$1/}} extends PHPUnit_Framework_TestCase {
public function setUp(){}
public function tearDown(){}
$10
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>phpu</tabTrigger>
<description>PHPUnit_Framework_TestCase</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html, source.php</scope>
</snippet>
4 changes: 2 additions & 2 deletions PHP/class-{-}.sublime-snippet
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[class ${2:ClassName}${3: extends ${4:AnotherClass}} {
function __construct(${7:argument}) {
<content><![CDATA[class ${1:${TM_FILENAME/(.+)\..+/$1/}}${5: extends ${15:AnotherClass}} {
function __construct(${20:argument}) {
${0:# code...}
}
}
Expand Down
1 change: 1 addition & 0 deletions User/Default.sublime-keymap
Expand Up @@ -301,4 +301,5 @@

// ,{ "keys": ["ctrl+shift+g"], "command": "grasp", "context": [ { "key": "selector", "operator": "equal", "operand": "source.js" } ] }

,{ "keys": ["ctrl+shift+r"], "command": "goto_symbol_in_project" }
]
45 changes: 35 additions & 10 deletions User/Monokai (SL).tmTheme
Expand Up @@ -71,7 +71,7 @@
</dict>
<dict>
<key>name</key>
<string>Invalid crap</string>
<string>brackethighlighter invalid</string>
<key>scope</key>
<string>brackethighlighter.invalid</string>
<key>settings</key>
Expand All @@ -83,6 +83,20 @@
</dict>
</dict>

<dict>
<key>name</key>
<string>brackethighlighter Quotes</string>
<key>scope</key>
<string>brackethighlighter.quotes</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#00000099</string>
<key>foreground</key>
<string>#ffffff</string>
</dict>
</dict>

<dict>
<key>settings</key>
<dict>
Expand Down Expand Up @@ -554,6 +568,17 @@
<string>#fd971d</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>PHP: Namespace</string>
<key>scope</key>
<string>namespace.php</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#CC0000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>PHP: Class</string>
Expand Down Expand Up @@ -589,33 +614,33 @@
</dict>
<dict>
<key>name</key>
<string>SublimeLinter Error</string>
<string>SublimeLinter Warning</string>
<key>scope</key>
<string>sublimelinter.mark.error</string>
<string>sublimelinter.mark.warning</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#D02000</string>
<string>#CC000077</string>
</dict>
</dict><dict>
<key>name</key>
<string>SublimeLinter Gutter Mark</string>
<string>SublimeLinter Error</string>
<key>scope</key>
<string>sublimelinter.gutter-mark</string>
<string>sublimelinter.mark.error</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#FFFFFF</string>
<string>#D02000</string>
</dict>
</dict><dict>
<key>name</key>
<string>SublimeLinter Warning</string>
<string>SublimeLinter Gutter Mark</string>
<key>scope</key>
<string>sublimelinter.mark.warning</string>
<string>sublimelinter.gutter-mark</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#CC000077</string>
<string>#FFFFFF</string>
</dict>
</dict></array>
<key>uuid</key>
Expand Down
1 change: 0 additions & 1 deletion User/Package Control.sublime-settings
Expand Up @@ -44,7 +44,6 @@
"SublimeLinter-json",
"SublimeLinter-php",
"SublimeTODO",
"SublimeWordPressCodex",
"Theme - Soda",
"TrailingSpaces",
"Twig",
Expand Down
10 changes: 5 additions & 5 deletions User/Preferences.sublime-settings
Expand Up @@ -93,17 +93,17 @@
"hot_exit": true,
"ignored_packages":
[
"SQL",
"Markdown",
"SublimeGit",
"Razor",
"Backbone.js",
"Sublime-Text-2-Goto-CSS-Declaration",
"LiveStyle",
"SublimeTextXdebug",
"Razor",
".git",
"Xdebug Client",
"Vintage",
"Xdebug Client"
"SQL",
"SublimeTextXdebug",
"LiveStyle"
],
"indent_guide_options":
[
Expand Down
127 changes: 9 additions & 118 deletions User/bh_core.sublime-settings
@@ -1,142 +1,33 @@
{
// Rule definitions for finding and matching brackets.
// Brackets are found by using regex and can use scope
// qualifiers exclude certain matches.
// Once all matches are found, the closest pair surrounding
// the cursor are selected.
// "brackets": [
// // Basic brackets
// {
// "name": "php_keywords",
// "open": "(?:^\\s*|<\\?(?:php)?\\s*)?\\b(if|foreach|for|while|switch)\\b(?=.*:\\s*(?:\\?>\\s*)?$)",
// "close": "(?:^\\s*|<\\?(?:php)?\\s*)?\\b(endif|endfor|endforeach|endwhile|endswitch)\\b(?=\\s*;\\s*(?:\\?>\\s*)?$)",
// "style": "brackethighlighter.php_tags",
// "language_filter": "whitelist",
// "scope_exclude": ["string", "comment"],
// "plugin_library": "bh_modules.phpkeywords",
// "language_list": ["HTML", "HTML 5", "XML", "PHP", "HTML+CFML", "ColdFusion", "ColdFusionCFC"],
// "enabled": true
// },
// {
// "name": "html",
// "open": "(<)(?=[\\w\\:\\-]+(?:(?:\\s+[\\w\\-:]+(?:\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^>\\s]+))?)*)\\s*\\/?>|\\/[\\w\\:\\-]+[^>]*>)",
// "close": "(?<=<)(?:[\\w\\:\\-]+(?:(?:\\s+[\\w\\-:]+(?:\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^>\\s]+))?)*)\\s*\\/?|\\/[\\w\\:\\-]+[^>]*)(>)",
// "style": "tag",
// "scope_exclude": ["string", "comment"],
// "language_filter": "whitelist",
// "language_list": ["HTML", "HTML 5", "XML", "PHP"],
// "plugin_library": "bh_modules.tags",
// "find_in_sub_search": "only",
// "enabled": false
// },

// {
// "name": "tag",
// "open": "(<)",
// "close": "(>)",
// "icon": "tag",
// "color": "brackethighlighter.tag",
// // "style": "outline",
// "language_filter": "whitelist",
// "scope_exclude": ["string", "comment", "keyword.operator"],
// "language_list": ["HTML", "HTML 5", "XML", "PHP", "HTML+CFML", "ColdFusion", "ColdFusionCFC"],
// "plugin_library": "bh_modules.tags",
// "enabled": true
// },

// {
// "name": "curly",
// "open": "(\\{)",
// "close": "(\\})",
// "style": "curly",
// "scope_exclude": ["string", "comment"],
// "scope_exclude_exceptions": ["string.other.math.block.environment.latex"],
// "language_filter": "blacklist",
// "language_list": ["Plain text"],
// "find_in_sub_search": true,
// "ignore_string_escape": true,
// "enabled": true
// },
// {
// "name": "round",
// "open": "(\\()",
// "close": "(\\))",
// "style": "round",
// "scope_exclude_exceptions": ["string.other.math.block.environment.latex"],
// "scope_exclude": ["string", "comment"],
// "language_filter": "blacklist",
// "language_list": ["Plain text"],
// "find_in_sub_search": true,
// "ignore_string_escape": true,
// "enabled": true
// },
// {
// "name": "square",
// "open": "(\\[)",
// "close": "(\\])",
// "style": "square",
// "scope_exclude": ["string", "comment"],
// "scope_exclude_exceptions": ["string.other.math.block.environment.latex"],
// "language_filter": "blacklist",
// "language_list": ["Plain text"],
// "find_in_sub_search": true,
// "ignore_string_escape": true,
// "enabled": true
// },
// // Angle brackets and tags
// {
// "name": "angle",
// "open": "(<)",
// "close": "(>)",
// "style": "angle",
// "scope_exclude": ["string", "comment", "keyword.operator"],
// "language_filter": "whitelist",
// "language_list": ["HTML", "HTML 5", "XML", "PHP", "HTML+CFML", "ColdFusion", "ColdFusionCFC"],
// "plugin_library": "bh_modules.tags",
// "enabled": true
// },
// // CSSedit groups
// {
// "name": "cssedit_groups",
// "open": "(/\\* *@group .*\\*/)",
// "close": "(/\\* *@end *\\*/)",
// "style": "default",
// "scope_exclude": [],
// "language_filter": "whitelist",
// "language_list": ["CSS"],
// "enabled": true
// }
// ],

// Define region highlight styles
"bracket_styles": {

"default": {
"icon": "dot",
"color": "brackethighlighter.default",
"style": "solid"
},


"unmatched": {
"icon": "question",
"color": "brackethighlighter.invalid",
"style": "solid"
},

"tag": {
"icon": "tag",
"color": "brackethighlighter.tag",
"style": "solid"
},

"single_quote": {
"icon": "single_quote"
// "color": "brackethighlighter.quote",
,"style": "underline"
"icon": "single_quote",
"color": "brackethighlighter.quotes",
"style": "solid"
},

"double_quote": {
"icon": "double_quote"
// "color": "brackethighlighter.quote",
,"style": "underline"
"icon": "double_quote",
"color": "brackethighlighter.quotes",
"style": "solid"
}
}
}
16 changes: 15 additions & 1 deletion User/color-schemes/Monokai.tmTheme
Expand Up @@ -71,7 +71,7 @@
</dict>
<dict>
<key>name</key>
<string>Invalid crap</string>
<string>brackethighlighter invalid</string>
<key>scope</key>
<string>brackethighlighter.invalid</string>
<key>settings</key>
Expand All @@ -83,6 +83,20 @@
</dict>
</dict>

<dict>
<key>name</key>
<string>brackethighlighter Quotes</string>
<key>scope</key>
<string>brackethighlighter.quotes</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#00000099</string>
<key>foreground</key>
<string>#ffffff</string>
</dict>
</dict>

<dict>
<key>settings</key>
<dict>
Expand Down
1 change: 1 addition & 0 deletions User/custom.sublime-commands
Expand Up @@ -3,6 +3,7 @@

{ "caption": "> [1] Apache: Restart", "command": "exec", "args" : { "cmd" : "C:\\xampp\\apache\\bin\\httpd.exe -k restart" } },
{ "caption": "> [2] Apache: edit httpd.conf", "command": "open_file", "args" : { "file" : "/C/xampp/apache/conf/httpd.conf" } },
{ "caption": "> [2] Apache: edit mysql conf", "command": "open_file", "args" : { "file" : "/C/xampp/mysql/bin/my.ini" } },
{ "caption": "> [3] Apache: edit php.ini", "command": "open_file", "args" : { "file" : "/C/xampp/php/php.ini" } },
{ "caption": "> [4] Apache: edit HOSTS file", "command": "open_file", "args" : { "file" : "/C/Windows/System32/Drivers/etc/hosts" } },

Expand Down
27 changes: 27 additions & 0 deletions ntz/WordPress/wptest.sublime-snippet
@@ -0,0 +1,27 @@
<snippet>
<!-- Example: Hello, ${1:this} is a ${2:snippet}. -->
<content><![CDATA[
class ${1:ClassName}_Test extends \WP_UnitTestCase {${10:
public function setUp(){
parent::setUp();
$12
\}
}${20:
public function tearDown(){
parent::tearDown();
$22
\}
}
public function test_true_is_true(){
\$this->assertFalse( true, 'failing test' );
}
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>wptest</tabTrigger>
<description>WordPress Test Case</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html, source.php</scope>
</snippet>
2 changes: 1 addition & 1 deletion ntz/WordPress/wptpl.sublime-snippet
Expand Up @@ -10,5 +10,5 @@ Template Name: $1
<tabTrigger>wptpl</tabTrigger>
<description>Create a template skeleton for WordPress pages</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.php</scope>
<scope>source.php, text.html</scope>
</snippet>

0 comments on commit 0b1360d

Please sign in to comment.