0

This question already has an answer here:

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".

Example:
Notepad++ is like:

https://i.imgur.com/LaSoc1u.png

And i want it to be like:

https://i.stack.imgur.com/gD85o.png

marked as duplicate by DavidPostill Jun 20 '18 at 6:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1

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

Say you have:

<html>
<head>
<div>test</div>
</head>
</html>

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

0

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.

  • 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.