How to convert single-line code block?

10

I need to convert certain blocks of code into a single line.

How can I do this? I'm using Notepad ++

    
asked by anonymous 18.08.2015 / 18:56

3 answers

15
CTRL + A to select the code block and then
18.08.2015 / 19:00
5

I think the best you can do is do a "Replace" by killing the line breaks. Usually made up of carriage return characters and line feed ( \r\n ).

    
18.08.2015 / 19:00
2

The name of this "feature" is minimize / minify and you can do this using online applications.

They are:

HtmlCompressor

TextFixer

The question of leaving in 1 row is irrelevant, because the intention is to leave the code "messy."

    
18.08.2015 / 19:01