Last active
December 16, 2015 03:59
-
-
Save fitnr/5373488 to your computer and use it in GitHub Desktop.
Minimal use of [CSSTidy PHP](https://github.com/Cerdic/CSSTidy) library.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
include 'csstidyphp/class.csstidy.php' ; | |
$css = new csstidy(); | |
// place the CSS that breaks here | |
$input = "body .foo { | |
*width: 10px; | |
width: 50px; | |
* height: 100px; | |
}"; | |
$css->parse($input); | |
fwrite(STDOUT, $css->print->plain()); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment