Automatic code formatting tool for Notepad++

Asked

Viewed 5,391 times

4

In my day to day I use the Textfx Plugin to indent my code and it is good the result.

When I pass the code to other programmers, I use the "Chrome Inspector", which has a more complete and organized result. I would like to simplify this by doing it by the editor itself (NP++), automatically as Textfx does.

  • I would like it to work in a similar way to the Chrome inspector:

Chrome inspector com código em uma linha só

  • Resulting in this:

Resultado da formatação automática

Is there any solution equivalent to this for Notepad++?

  • This question seems to be outside the scope of this site.

  • I don’t know if this is being maintained: http://jsminnpnpsourceforge.net/ You have online tools for this, it’s not the same as in the editor, but it’s already something: http://jsbeautifier.org/ - Just paste and have it formatted. Note: is not for Notepad++, but this last one has plugin for several other editors if you are interested in the future.

  • 1

    Guys, how can this not be the scope of the site? I need this to program or not? How sad, where I can ask this question without offending anyone?

  • And now? should I delete this post?

  • Well, now I’m very, but really very confused... Isn’t that a kind of identation? http://answall.com/questions/112800/eliminates%C3%A7%C3%A3o-of-repeated-words-using-the-Notepad or something ? http://answall.com/questions/81282/como-converter-bloco-de-c%C3%B3digo-in-%C3%Banica-line. They look very similar to me. I feel lost.

  • @Camilayamamoto I would suggest to wait a little before deleting, because as the comments remain open, you can give some hint yet. And take a look at the 2 links I indicated above, which are code formatters. One of them for NP++, inclusive. The other is not for NP++, but works online, just paste the code there that it formats, and you can copy back neatly.

  • Thanks for the tip to delete, and on the links. I’m already testing them! you’re very kind! you’re the best even!

  • I edited the post, let’s see.

  • 2

    I found the question valid

  • @Danielomine :D

  • 1

    I think the question is ok, something related to Notepad++ goes into common tools among programmers.

  • I don’t know if there is anything for Notepad++, but this site is really cool and it’s perfect https://www.freeformatter.com/html-formatter.html#ad-output

Show 7 more comments

1 answer

2


Following the @Bacco tips,

The identation plugin, which came closest to Chrome’s default, was jsminnpp.sourceforge.net (i.e., Jstools). I’ll use it more !

Thank you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.