This linter plugin for SublimeLinter provides an interface to makensis. It will be used with NSIS scripts.
Before using this plugin, you must ensure that NSIS v3.02.1 (or higher) is installed on your system. To do so, follow these steps:
Download the NSIS installer from SourceForge and run setup. Once completed, you need to add the installation folder to your environmental variable manually.
Alternatively, you can install NSIS using the Scoop package manager:
$ scoop install nsis/nsis
Install NSIS from your distribution's default package manager, for example:
# Debian
sudo apt-get install -t unstable nsis
# Red Hat
sudo dnf install nsis
Install NSIS using Homebrew or MacPorts:
# Homebrew
brew install nsis
# MacPorts
port install nsis
- Make sure you have Package Control installed
- Choose “Install Package” from the Command Palette (Super+Shift+p)
- Type “SublimeLinter-contrib-makensis” and press Enter
With the auto_upgrade
setting enabled, Package Control will keep all installed packages up-to-date!
- Change to your Sublime Text
Packages
directory - Clone repository
git clone https://github.com/idleberg/SublimeLinter-contrib-makensis.git SublimeLinter-contrib-makensis
Please refer to the official documentation in order to tweak the SublimeLinter settings or linter settings.
To configure this plugin, bring up the Command Palette and type Preferences: SublimeLinter Settings
. The following options are available:
Option | Default | Description |
---|---|---|
preprocess_mode |
SAFEPPO |
Lints much faster, but ignores warnings (equivalent of -PPO flag) |
strict |
false |
Treats warnings as errors (equivalent of -WX flag) |
Example:
{
"linters": {
"makensis": {
"@disable": false,
"args": [],
"excludes": [],
"preprocess_mode": "SAFEPPO",
"strict": false
}
}
}
This work is licensed under the The MIT License