Prefixr wrapper

Started by Anonymous, October 15, 2012, 12:15:24 PM

Previous topic - Next topic

Anonymous

Prefixr plugin exists in Sublime Text 2. You can create same, see wrapper https://sourceforge.net/projects/prefixr-cli/

alex

Hi Alex,

good idea for scripting plug-in, will add it soon.
Small effort -> big benefits :) .

Thanks.

BR, Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

alex

#2
Done. See attached plugin file.

But I have strange filling that I did too much, and all that options that exist on main page not supported by API. As:

Code (javascript) Select
if (readStorage("compress_option", false)) url += "compress_option=on&";
if (readStorage("add_spaces_option", true)) url += "add_spaces_option=on&";
if (readStorage("keep_vars_option", false)) url += "keep_vars_option=on&";
if (readStorage("all_exclude", false)) url += "all_exclude=on&";
if (readStorage("o_exclude", false)) url += "o_exclude=on&";
if (readStorage("ms_exclude", false)) url += "ms_exclude=on&";
if (readStorage("moz_exclude", false)) url += "moz_exclude=on&";

return url + 'css=' + escape(textToFormat);


Or maybe I miss something? I have not also found any official docu except of example implementations...
Got it.

[attachimg=1]
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Anonymous

I not sure you use options supported by API. Your hejs is big, very.

alex

These are options available in HTML version. I have done some adoptions, and now as I see looks like they are accepted, at least some of them :)
Most of the script is definition/management of option page for plugin and icon. The coding itself is several lines -> just do request to web service and replace the text.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]