cssprettifier-userscript

Format and syntax highlight CSS files you open

Stars
50
Committers
3

cssprettifier-userscript

Format and syntax highlight CSS files you open.

A userscript is like a cross-browser extension that makes on-the-fly changes to specific web pages, typically to change their appearance or to add or modify functionality.

Getting started

Install

Available on Chrome, Firefox (requires GreaseMonkey), Safari (requires NinjaKit), Opera.

Overview

Before

.callout{margin:15px 0;padding:10px;font-size:13px;color:#8d8d6d;background:#fffef1;border:1px solid #e5e2c8;border-radius:4px;}.callout strong{font-weight:bold;color:#000;}

After

.callout {
	margin: 15px 0;
	padding: 10px;
	font-size: 13px;
	color: #8d8d6d;
	background: #fffef1;
	border: 1px solid #e5e2c8;
	border-radius: 4px;
}

.callout strong {
	font-weight: bold;
	color: #000;
}

A bookmarklet is also available.

Powered by cssbeautify and Prism.

License

MIT © Sindre Sorhus