Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 7307645978cc37803cc49b28bb03c261b79fc520 1 parent a99a792
@PhilippSchaffrath authored
View
8 README.md
@@ -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
2  anypreter.py
@@ -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):
View
1  interpreters/PHP/PHP-HTML.py
@@ -1 +0,0 @@
-sublime.error_message("PHP in HTML-Mode!!")
View
24 interpreters/PHP/PHP.sublime-settings
@@ -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%\""
}
]
View
5 interpreters/Python/Python.sublime-settings
@@ -1,3 +1,6 @@
{
- "Name": "Python"
+ "Name": "Python",
+ "encryption": "base64",
+ "wrapper": "import base64; exec(base64.b64decode('%code%'))",
+ "command": "python -c \"%code%\""
}
Please sign in to comment.
Something went wrong with that request. Please try again.