jcartledge / sublime-worksheet

An inline REPL for JavaScript, PHP, Ruby & more in Sublime Text 2 and 3
MIT License
333 stars 18 forks source link

actionscript repl #28

Open zwetan opened 11 years ago

zwetan commented 11 years ago

download the avmshell exe https://code.google.com/p/redtamarin/source/browse/trunk/build/shell/

install it in your /usr/bin/

for ex: /usr/bin/avmshell

edit the worksheet.sublime-settings

and add at the end

        "ActionScript": {
            "cmd": "avmshell -repl",
            "prompt": ["> "],
            "error": ["[0-9]+Error:"],
            "ignore": [".input"]
        }
jcartledge commented 11 years ago

Thanks for that! Are you comfortable submitting it as a pull request? There's one for Racket at #22 which covers the process for doing this.

zwetan commented 11 years ago

yes I saw that, I ll try to submit a patch when time allows

I need to make a bit more test, I would like to support multiline scripts ;)

jcartledge commented 11 years ago

Great, thanks. Good luck with the multiline thing. There's a similar problem with the coffeescript repl - it's default mode is single line and you have to explicilty switch it in and out of multiline mode.