Topic: https://brettterpstra.com/2011/08/09/prefixr-service/
hide preview

What's next? verify your email address for reply notifications!

Jeffrey Way 13y, 162d ago

Nice! I just added this to the services section of Prefixr.

hide preview

What's next? verify your email address for reply notifications!

Lri 13y, 223d ago

The relevant part of the service is:

curl -sSd "css=$@" "http://prefixr.com/api/index.php"

Which is the same as the example for TextMate at prefixr.com/api/usage, but with $TM_SELECTED_TEXT replaced by $@.

At the moment there's no way to access the parameters from the Prefixr API (?). The output always uses multiline rules (vs inline rules) and tabs (vs spaces). And the input has to be full rule sets (like .box {border-radius:4px}), not individual declarations (like border-radius:4px).

hide preview

What's next? verify your email address for reply notifications!