Is there a way to pretty format or beautify NSIS script source code? [closed]
Asked Answered
T

2

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.

Taxdeductible answered 15/9, 2015 at 8:50 Comment(3)
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.Aerial
Have you at least got syntax highlighting?Duckboard
Maybe this helps npmjs.com/package/@nsis/dent-cliAerial
S
1

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

enter image description here

Svetlanasvoboda answered 15/12, 2018 at 4:46 Comment(0)
H
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.

Hotpress answered 24/8, 2016 at 17:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.