Atom: Difference between revisions
No edit summary |
|||
Line 55: | Line 55: | ||
=== Building === | === Building === | ||
The easiest way to build scripts is probably [https://atom.io/packages/script atom-script], a package which already supports makensis. Use the default <kbd>Super</kbd>+<kbd>I</kbd> to build scripts. Be aware that atom-script will build selectively once lines of codes have been selected. | |||
As an alternative, you can also use [http://atom.io/packages/atom-runner atom-runner] to build scripts within Atom. If atom-runner has been detected, the user will be asked whether to use makensis as the default runner for NSIS scripts. Use the default <kbd>Ctrl</kbd>+<kbd>R</kbd> to build scripts. | |||
== Links == | == Links == |
Revision as of 12:21, 29 September 2015
Description
An all around NSIS language package for GitHub's new Atom editor
Grammar
Syntax highlighting of all commands in NSIS versions 2.46 & 3.0b1 and their included plug-ins
Completions
Tab-completions for syntax, useful snippets for quick scaffolding
Extension Packages
You can further extend #nsis support in Atom.
Installation
Atom Package Manager (apm)
Install package from apm install language-nsis
(or use the GUI)
Git
Change to the Atom package directory and clone the repository:
git clone https://github.com/idleberg/atom-language-nsis.git language-nsis
Usage
Completion
With most commands, you can specify available options before completion. For instance, rather than completing RequestExecutionLevel
and then specifying an option, you can directly choose RequestExecutionLevel user
from the completion menu.
To complete compile time commands, variables or predefines, *leave out* special characters:
include
completes to!include
INSTDIR
completes to$INSTDIR
NSIS_VERSION
completes to${NSIS_VERSION}`
However, you have to type __LINE___
to complete to ${__LINE__}
.
There are several special cases for your convenience:
MB_OK
completes toMessageBox MB_OK
onInit
completes to aFunction .onInit
blockLogicLib
completes to!include "LogicLib.nsh"`
Building
The easiest way to build scripts is probably atom-script, a package which already supports makensis. Use the default Super+I to build scripts. Be aware that atom-script will build selectively once lines of codes have been selected.
As an alternative, you can also use atom-runner to build scripts within Atom. If atom-runner has been detected, the user will be asked whether to use makensis as the default runner for NSIS scripts. Use the default Ctrl+R to build scripts.