uncompress a minified stylesheet


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. cat style.css | gsed 's/\([;{]\)\([^\n]\)/\1\n\t\2/g' | gsed 's/\([^}]\)}/\1;\n}\n\n/g' | gsed 's/{/ {/g' | gsed 's/[,]/& /g' | gsed '/}/ { n;n; s/}\n\([^\n]\)/}\n\n\1/ }'

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.