Home html NOTEPAD ++ - Automatic lines in HTML

NOTEPAD ++ – Automatic lines in HTML

Author

Date

Category

Tell me how in NotePad ++ to arrange automatically transfer lines (maybe there is a special plugin?) to the code of the form:

& lt; html & gt; & lt; head & gt; & lt; title & gt; & lt; / title & gt; & lt; / head & gt; & lt; Body & GT; & lt; / body & gt; & lt; / html & gt;

became:

& lt; html & gt;
& lt; Head & gt;
& lt; Title & gt;
& lt; / title & gt;
& lt; / Head & gt;
& lt; Body & gt;
& lt; / body & gt;
& lt; / html & gt;

Further to it can be applied IdentByfold plugin for automatic tabs.


Answer 1, Authority 100%

Thank you, @eetki , good option. Maybe someone will help in the future – we turn code into a convenient readable view:

  1. replace & gt; On & GT; \ R \ N In Extended Search Mode mode;
  2. replace & lt; on \ r \ n & lt; In Extended Search Mode mode;
  3. We remove empty lines via Edit- & gt; Line Operations- & GT; Remove Empty Lines and Edit- & GT; Line Operations- & GT; Remove Empty Lines (Containing Blank Characters);
  4. We use the IdentByfold plugin

The output is a convenient readable code.


Answer 2, Authority 50%

Try replacing & gt; on & gt; \ r \ n (perhaps you need an Extended Search Mode mode).


Answer 3

I figured out this problem.

  • Come in the “Options” →
  • “hotkeys” →
  • enter in filter “transfer according to”, such a function is →
  • choose a combination, for example, ctrl + alt + 0
  • Save the change, insert the desired text in NotePad ++ and activate the transfer command by keypad on the keyboard.

Ready!

Now the text is transferred according to words, and not outside and no longer need to scroll forward so as far as the text is in one line.


Answer 4

We highlight the text, press Ctrl + I


Answer 5

Here, and it is not necessary to invent anything:

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions