ActiveState Community

Macro: SwitchCSS - multi/single-line CSS switching

Posted by artyv on 2009-05-13 00:36
OS: All / Any

Hi!

Macro for switching from single/multi-line CSS. Works also with inline comments. Just make selection on what you want to switch

Before:

#id { /*test*/ border:1px #CCCCCC solid; font: 12px Tahoma; background: /*black*/ url('img/bg.gif') no-repeat; /* Some comment */ color: /*inherit*/ #FF0000; /*Few another*/ /* comments*/ text-align: left; /* very-tricky-comment; very; very-very; */ }

After:

#id {
	/*test*/
	border:1px #CCCCCC solid;
	font: 12px Tahoma;
	background: /*black*/ url('img/bg.gif') no-repeat;
	/* Some comment */
	color: /*inherit*/ #FF0000;
	/*Few another*/
	/* comments*/
	text-align: left;
	/* very-tricky-comment; very; very-very; */
}

And so on : )

AttachmentSize
SwitchCSSv0.0.4.kpz3 KB