开发者

How to convert css long to css one line style with Notepad++

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?


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


Without any notepad++ plugin just select and use : CTR + J


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/


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.


TextFX is not working for this problem. I had same problem and this solution worked for me:
Press Ctrl+H to then type } in find what text box and }\n in replace with text box and choose Extended from Search mode then press replace all. That's it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜