Permalink
Browse files

Added extra commands, such as "Format as Javascript" and etc.

  • Loading branch information...
1 parent 9242f99 commit 6828b229d7f76c8862b0cd01c1d38aacedcb314e @akalongman committed Oct 1, 2014
Showing with 113 additions and 10 deletions.
  1. +15 −10 CodeFormatter.sublime-commands
  2. +35 −0 LICENSE
  3. +55 −0 Main.sublime-menu
  4. +1 −0 messages.json
  5. +7 −0 messages/2.4.1.txt
@@ -2,32 +2,37 @@
{
"caption": "CodeFormatter: Format Code",
"command": "code_formatter"
- }, {
- "caption": "CodeFormatter: Format As PHP Code",
+ },
+ {
+ "caption": "CodeFormatter: Format as PHP Syntax",
"command": "code_formatter",
"args": {
"syntax": "php"
}
- }, {
- "caption": "CodeFormatter: Format As javascript Code",
+ },
+ {
+ "caption": "CodeFormatter: Format as Javascript Syntax",
"command": "code_formatter",
"args": {
"syntax": "javascript"
}
- }, {
- "caption": "CodeFormatter: Format As CSS Code",
+ },
+ {
+ "caption": "CodeFormatter: Format as CSS Syntax",
"command": "code_formatter",
"args": {
"syntax": "css"
}
- }, {
- "caption": "CodeFormatter: Format As HTML Code",
+ },
+ {
+ "caption": "CodeFormatter: Format as HTML Syntax",
"command": "code_formatter",
"args": {
"syntax": "html"
}
- }, {
- "caption": "CodeFormatter: Format As python Code",
+ },
+ {
+ "caption": "CodeFormatter: Format as Python Syntax",
"command": "code_formatter",
"args": {
"syntax": "python"
View
@@ -0,0 +1,35 @@
+/**
+ * CodeFormatter
+ *
+ * Copyright (c) 2009-2014, Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * * Neither the name of Avtandil Kikabidze nor the names of his
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+*/
View
@@ -24,6 +24,61 @@
"command": "open_file",
"args": {"file": "${packages}/User/CodeFormatter.sublime-settings"},
"caption": "Settings – User"
+ },
+ { "caption": "-" },
+ {
+ "command": "open_file",
+ "args": {
+ "file": "${packages}/CodeFormatter/Default (OSX).sublime-keymap",
+ "platform": "OSX"
+ },
+ "caption": "Key Bindings – Default"
+ },
+ {
+ "command": "open_file",
+ "args": {
+ "file": "${packages}/CodeFormatter/Default (Linux).sublime-keymap",
+ "platform": "Linux"
+ },
+ "caption": "Key Bindings – Default"
+ },
+ {
+ "command": "open_file",
+ "args": {
+ "file": "${packages}/CodeFormatter/Default (Windows).sublime-keymap",
+ "platform": "Windows"
+ },
+ "caption": "Key Bindings – Default"
+ },
+ {
+ "command": "open_file",
+ "args": {
+ "file": "${packages}/User/Default (OSX).sublime-keymap",
+ "platform": "OSX"
+ },
+ "caption": "Key Bindings – User"
+ },
+ {
+ "command": "open_file",
+ "args": {
+ "file": "${packages}/User/Default (Linux).sublime-keymap",
+ "platform": "Linux"
+ },
+ "caption": "Key Bindings – User"
+ },
+ {
+ "command": "open_file",
+ "args": {
+ "file": "${packages}/User/Default (Windows).sublime-keymap",
+ "platform": "Windows"
+ },
+ "caption": "Key Bindings – User"
+ },
+ { "caption": "-" },
+ {
+ "command": "open_file",
+ "args": {"file": "${packages}/CodeFormatter/README.md"},
+ "caption": "README"
}
]
}
View
@@ -10,4 +10,5 @@
"2.2.0": "messages/2.2.0.txt",
"2.3.0": "messages/2.3.0.txt",
"2.4.0": "messages/2.4.0.txt",
+ "2.4.1": "messages/2.4.1.txt"
}
View
@@ -0,0 +1,7 @@
+Sublime CodeFormatter 2.4.1 Changelog:
+
+Please report me any bugs and proposals at akalongman@gmail.com or GitHub (https://github.com/akalongman/sublimetext-codeformatter/issues)
+
+Features
+------------
+- Added extra commands, such as "Format as Javascript" and etc.

0 comments on commit 6828b22

Please sign in to comment.