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

Using Boris as a PHP REPL alternative. #39

Closed WMeldon closed 11 years ago

WMeldon commented 11 years ago

I was playing around with this and wanted to use Boris instead. After a couple small explosions to figure out how the settings worked, I found this to work when added to the user settings:

"worksheet_languages": {
    "PHP": {
        "cmd": "/path/to/boris",
        "prompt": ["(\\[[\\d]+\\]) (boris> | *\\*>)"],
        "error": ["PHP Parse error:", "PHP Fatal error"],
        "ignore": ["<\\?php", "\\?>"]
    }
}

Only real change was the prompt regex, which I still don't understand 100%. Not an issue per se, but I thought it might be useful to someone.

jcartledge commented 11 years ago

That's cool - I'll add it to the README. Thanks!