jancbeck/Barista-Beautifier.sugar — pull request #6 by onecrayon (2014-08-18 18:10:02+00:00)
Title: Switch to CETextRecipe to prevent special snippet characters from being stripped out

A user wrote in with a bug report because Barista-Beautifier was stripping out special snippet characters (primarily PHP variables). I took a look, and this is happening because Barista is using a text snippet without escaping special characters. I switched it up to text recipes instead, which has the added benefit of retaining the cursor placement relative to the surrounding text (when things don't change too drastically).

Note that I also added the options object into the Javascript beautifier; if this was not being used for a reason, you'll want to strip that commit out. I did not test these changes extensively, but in my short tests they appear to work fine.