Hi all,
the title might be a little confusing, so let me explain.
I’d like to develop a plugin that opens and saves CSS “future-proof”. So if the original file content looks like this:
div {
-webkit-border-radius: 10px;
-ms-border-radius: 10px;
border-radius: 10px;
}
…I would like to display the following to the user:
div {
border-radius: 10px;
}
Basically preprocessing the document and folding away anything related to cross browser compatibility.
When saving the altered buffer in Sublime, then do the whole thing reverse: Apply something like Prefixr (prefixr.com/) and save the file in the format it was parsed. The idea is to completely fold away complexity and intercept at the right place: The editor.
Now my obvious question: Can this be done with Sublime Text 2? I haven’t seen similar plugins.
Thanks much!
Cheers,
Paul