SublimeLinter: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
 
Line 19: Line 19:
Install <code>makensis</code> from your distribution's default package manager, for example:
Install <code>makensis</code> from your distribution's default package manager, for example:


<code>sudo apt-get install nsis # Debian
<code>sudo apt-get install nsis # Debian  
 
sudo yum install nsis # Red Hat</code>
sudo yum install nsis # Red Hat</code>


Line 26: Line 27:
Install `makensis` through [http://brew.sh/ Homebrew]
Install `makensis` through [http://brew.sh/ Homebrew]


<code># Homebrew
<code>brew install nsis</code>
brew install nsis</code>


**Note:** This plugin requires `makensis` 2.46 or later.
*Note:* This plugin requires <code>makensis</code> 2.46 or later.


=== Linter configuration ===
=== Linter configuration ===

Latest revision as of 08:19, 10 May 2016

Description

This linter plugin for SublimeLinter provides an interface to makensis. It will be used with NSIS scripts.

SublimeLinter.png

Installation

SublimeLinter 3 must be installed in order to use this plugin. If SublimeLinter 3 is not installed, please follow the instructions [here][installation].

Linter installation

Before using this plugin, you must ensure that makensis is installed on your system. To install makensis, do the following:

Windows

Download NSIS 2.46 (or later) from SourceForge and run setup

Linux

Install makensis from your distribution's default package manager, for example:

sudo apt-get install nsis # Debian

sudo yum install nsis # Red Hat

Mac OS X

Install `makensis` through Homebrew

brew install nsis

  • Note:* This plugin requires makensis 2.46 or later.

Linter configuration

In order for makensis to be executed by SublimeLinter, you must ensure that its path is available to SublimeLinter. Before going any further, please read and follow the steps in “Finding a linter executable” through “Validating your PATH” in the documentation.

Once you have installed and configured makensis, you can proceed to install the SublimeLinter-contrib-makensis plugin if it is not yet installed.

Plugin installation

Please use Package Control to install the linter plugin. This will ensure that the plugin will be updated when new versions are available. If you want to install from source so you can modify the source code, you probably know what you are doing so we won’t cover that here.

To install via Package Control, do the following:

1. Within Sublime Text, bring up the [Command Palette][cmd] and type install. Among the commands you should see Package Control: Install Package. If that command is not highlighted, use the keyboard or mouse to select it. There will be a pause of a few seconds while Package Control fetches the list of available plugins.

1. When the plugin list appears, type makensis. Among the entries you should see SublimeLinter-contrib-makensis. If that entry is not highlighted, use the keyboard or mouse to select it.

Links