1

I am looking for a way to take code someone sends me in HTML and indent it accordingly. It would appear I receive code by multiple editors and it annoys me that it's not structured correctly or not indented. when I do A Google search nothing pops up. I have seen how to auto-indent like this but Im trying to correct the issue after it has been coded.

4
  • there's tools that clean up code, but only for specific languages, e.g. cb for C beautification. Commented Feb 7, 2013 at 17:01
  • so basically you are saying there is not one solid way to highlight the code and hit indent or a complete plugin that will do it? Commented Feb 7, 2013 at 17:06
  • 1
    no. different languages have different formatting rules. e.g. something that'll beautify PHP or C will probably totally destroy a Python script. Commented Feb 7, 2013 at 17:08
  • The format and amount of code indenting varies from one person to the next. For JS and HTML you can use: jsbeautifier.org Commented Feb 7, 2013 at 18:11

1 Answer 1

1

There is a plugin called HTMLTidy that can indent HTML. Look at this question and this answer for information on how to get it working on newer versions of Notepad++.

Sign up to request clarification or add additional context in comments.

1 Comment

thanks for the fix, i didn't mention this myself because i never had the dll and couldn't use the tool

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.