6

I've got an NSIS script that is a couple thousand lines and not properly indented making the script difficult to read. Is there a way to format NSIS script or at the minimum be able to indent the Ifs and Endifs sections? There's plenty of online script formatters for HTML, Javascript, XML, etc.

Joshua
  • 1,709
  • 2
  • 24
  • 38
  • As far as I know there is no such thing. makensis has no such option built in — in contrary: it removes all indentation when outputting the script to stdout. – idleberg Sep 15 '15 at 10:29
  • Have you at least got syntax highlighting? – icc97 Sep 15 '15 at 10:39

2 Answers2

1

Notepad++ does an excellent job of supporting the NSI code conventions straight out of the box.

enter image description here

Ed Sheehan
  • 82
  • 6
0

I've used EclipseNSIS for working with NSIS before; it at least uses syntax highlighting, which is nice.

Atom Editor is also really nice for NSIS, and it has some packages you can add on to make it easier to work on NSIS scripts.

I don't think I ever found anything to prettify or format the script, unfortunately, but that may now be a part of either Atom or EclipseNSIS, I'm not sure.

Michael Armes
  • 1,056
  • 2
  • 17
  • 31