I am writing HTML in Notepad++, but I did not find a way of making it more organized. I want, for example, that "head" is more to the right than "html".

Notepad++ is like:


And i want it to be like:



What you want is something to auto-indent your code.

Say you have:


copy and paste to https://codebeautify.org/htmlviewer/ and click beautify to auto-indent your code.

|improve this answer|||||

That is Haml it's a markup language for HTML, Notepad++ does not convert HTML to Haml.

If you are using Notepad++ to view Haml format files to highlight the syntax you will need to download and use a haml syntax highlighting.

Here is a superuser question previously asked regarding Notepad++ auto indention.

|improve this answer|||||
  • Not EXACTLY like that one, but with "sublevels". – Patrick Feeney Jun 20 '18 at 2:09
  • and also, i dont know how to install that haml syntax highlighting. Im a noob on this stuff – Patrick Feeney Jun 20 '18 at 2:11
  • @PatrickFeeney link explains how to download and import it into Notepad ++. In relation to organising HTML it all depends on the coder, have a look at link. – angelofdev Jun 20 '18 at 2:16
  • Well...thanks, but i meant to the "order"(sub levels?), not to the color of the code. – Patrick Feeney Jun 20 '18 at 2:33
  • 2
    @PatrickFeeney use indentation by pressing the Tab button on your keyboard. – angelofdev Jun 20 '18 at 3:07

Not the answer you're looking for? Browse other questions tagged or ask your own question.