SublimeLinter: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(Created page with "== Description == This linter plugin for [http://sublimelinter.readthedocs.org/ SublimeLinter] provides an interface to <code>makensis</code>. It will be used with NSIS scrip...")
 
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># Debian
<code>sudo apt-get install nsis # Debian
sudo apt-get install nsis
sudo yum install nsis # Red Hat</code>
 
# Red Hat
sudo yum install nsis</code>


==== Mac OS X ====
==== Mac OS X ====

Revision as of 18:39, 9 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

# 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