Permalink
Browse files

Updated Readme, deleted sys from imports, updated python and php configs

  • Loading branch information...
phisch committed Apr 8, 2012
1 parent a99a792 commit 7307645978cc37803cc49b28bb03c261b79fc520
Showing with 14 additions and 26 deletions.
  1. +7 −1 README.md
  2. +1 −1 anypreter.py
  3. +0 −1 interpreters/PHP/PHP-HTML.py
  4. +2 −22 interpreters/PHP/PHP.sublime-settings
  5. +4 −1 interpreters/Python/Python.sublime-settings
View
@@ -2,6 +2,12 @@
Execute selected Code (or the whole document) from many interpreting laguages directly from your SublimeText2 Editor and see the result
+### Supported Interpreters
+
+* PHP
+* Python
+* Ruby
+
## Installation
You have three ways to install the Anypreter: using git, installing it manually or using the SublimeText2 "Package Controll" (Available here: http://wbond.net/sublime_packages/package_control)
@@ -53,7 +59,7 @@ The following settings are available and optional, but the default settings shou
"anypreter_output_inteval": 1
}
-php_binary_path: The path to your PHP binary (fallback: "php"-call)
+x_binary_path: The path to your x binary (add your binary paths to your OS-environment-path to avoid problems)
anypreter_stream_output: "True" to buffer the output and display it in a specified interval livetime
anypreter_output_inteval: the output interval for anypreter_stream_output in seconds (can be float)
View
@@ -1,4 +1,4 @@
-import sublime, sublime_plugin, subprocess, os, re, thread, functools, json, time, sys
+import sublime, sublime_plugin, subprocess, os, re, thread, functools, json, time
class anypreter(sublime_plugin.TextCommand):
@@ -1 +0,0 @@
-sublime.error_message("PHP in HTML-Mode!!")
@@ -10,29 +10,9 @@
},
{
"Name": "PHP (HTML-Mode)",
- "replacements":
- [
- {
- "search": "/\\*.*?\\*/",
- "replace": ""
- },
- {
- "search": "//.*?\\n",
- "replace": ""
- },
- {
- "search": "\\n",
- "replace": ""
- },
- {
- "search": "\\s{2,}|\\t",
- "replace": " "
- }
- ],
"plain_wrapper": "?>%code%",
"encryption": "base64",
- "wrapper": "echo 'yeahhhh boy!'; eval(base64_decode('%code%'));",
- "command": "php -r \"%code%\"",
- "custom_code_file": "PHP2.py"
+ "wrapper": "eval(base64_decode('%code%'));",
+ "command": "php -r \"%code%\""
}
]
@@ -1,3 +1,6 @@
{
- "Name": "Python"
+ "Name": "Python",
+ "encryption": "base64",
+ "wrapper": "import base64; exec(base64.b64decode('%code%'))",
+ "command": "python -c \"%code%\""
}

0 comments on commit 7307645

Please sign in to comment.