views:

193

answers:

3

from style that looks like this:

ul#menu
{
  padding: 0 0 2px;
  position: relative;
  margin: 0;
  text-align: right;
}

to:

ul#menu { padding: 0 0 2px; position: relative;  margin: 0; text-align: right; }

Is there auto plugin, or script?

+3  A: 

If you have the TextFX plugin (which comes by default) select the text you wish to fix and then follow these instructions to select the appropriate TextFX function from the menu bar:

TextFX -> TextFX Edit -> Unwrap Text

Andrew Hare
How could one extend your approach for multiple blocks?
lmsasu
As long as there is a blank line between the blocks then the blank line will be preserved.
Andrew Hare
Otherwise you will need to *Unwrap Text* then replace all instances of `}` with `}\n`.
Andrew Hare
+1  A: 

Notepad++ doesn't support formatting code by default. It can be achieved using plugins. I haven't tried it myself, but Googling I found a link that explains how Notepad++ can integrate with this pay-for product that does the actual formatting, and is configurable:

http://www.sourceformat.com/

Mark Byers
I have an error when go by this link
dynback.com
A: 

Not the answer you're seeking, but anyway. If you've the right to use other tools, the task will be dead simple with PSPad and its options Reformat into Structured CSS / Reformat into Inline CSS.

Felipe Alsacreations