Pulsar Edit: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(Created page with "== Description == [http://atom.io/ Atom] language support for NSIS == Install with Package Control == 1. Make sure you have Atom (with apm) [installed https://atom.io/docs/...")
 
No edit summary
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Description ==
== Description ==


[http://atom.io/ Atom] language support for NSIS
An all around NSIS language package for[https://pulsar-edit.dev/ Pulsar


== Install with Package Control ==
=== Grammar ===


1. Make sure you have Atom (with apm) [installed https://atom.io/docs/v1.0.0/getting-started-installing-atom#atom-on-windows]<br/>
Syntax highlighting of all commands in NSIS versions 2.46 & 3.12 and their included plug-ins
2. Install package apm install "language-nsis"


== Install with Git  ==
=== Completions ===


Change to the Atom package directory and clone the repository:
Tab-completions for syntax, useful snippets for quick scaffolding


  git clone <nowiki>https://github.com/idleberg/language-nsis.git</nowiki>
https://raw.github.com/idleberg/atom-language-nsis/master/resources/screenshot.gif
 
=== Code Formatting ===
 
The extensions has built-in code formatting using the <code>dent</code> formatter
 
=== Extension Packages ===
 
You can further extend [https://packages.pulsar-edit.dev/packages/search?q=nsis #nsis] support in Pulsar.
 
* [https://packages.pulsar-edit.dev/packages/nsis-plugins 3rd party plug-ins]
* [https://packages.pulsar-edit.dev/packages/language-nlf NSIS Language File]
* [https://packages.pulsar-edit.dev/packages/language-nsl nsL Assembler]
 
== Installation ==
 
=== Pulsar Package Manager (ppm) ===
 
Install package from <code>ppm install language-nsis</code> (or use the GUI)
 
=== Git ===
 
Change to the Pulsar package directory and clone the repository:
 
<code>git clone <nowiki>https://github.com/idleberg/atom-language-nsis.git language-nsis</nowiki></code>
 
== Usage ==
 
=== Completion ===
 
With most commands, you can specify available options before completion. For instance, rather than completing <code>RequestExecutionLevel</code> and then specifying an option, you can directly choose <code>RequestExecutionLevel user</code> from the completion menu.
 
To complete compile time commands, variables or predefines, *leave out* special characters:
 
* <code>include</code> completes to <code>!include</code>
* <code>INSTDIR</code> completes to <code>$INSTDIR</code>
* <code>NSIS_VERSION</code> completes to <code>${NSIS_VERSION}`</code>
 
However, you have to type <code>__LINE___</code> to complete to <code>${__LINE__}</code>.
 
There are several special cases for your convenience:
 
* <code>MB_OK</code> completes to <code>MessageBox MB_OK</code>
* <code>onInit</code> completes to a <code>Function .onInit</code> block
* <code>LogicLib</code> completes to <code>!include "LogicLib.nsh"`</code>
 
=== Building ===
 
There are many ways to compile NSIS scripts in Pulsar. But before we go into detail, make sure makensis is in your PATH [http://superuser.com/a/284351/195953 PATH environmental variable].
 
As of v4.0.0 of this package, you can compile scripts without relying on third-party packages. To do so, select “NSIS: Save & Compile” from the command-palette or use the shortcut <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>M</kbd> (that's <kbd>Shift</kbd>+<kbd>Alt</kbd>+<kbd>M</kbd> on Windows.)
 
==== Third-party packages ====
 
In addition to that, you can choose from the following build packages to compile NSIS:
 
* [https://packages.pulsar-edit.dev/packages/build build] with build provider (e.g. [https://packages.pulsar-edit.dev/packages/build-makensis build-makensis]), supports [https://packages.pulsar-edit.dev/packages/linter linter]
* [https://packages.pulsar-edit.dev/packages/script script]
* [https://packages.pulsar-edit.dev/packages/atom-runner atom-runner]


== Links ==
== Links ==
* [https://github.com/idleberg/language-nsis GitHub]<br />
* [https://github.com/idleberg/language-nsis GitHub]<br />
* [https://packages.pulsar-edit.dev/packages/language-nsis Pulsar Packages]<br />


[[Category:Syntax_Highlighting]]
[[Category:Syntax_Highlighting]]
[[Category:Development Environments]]

Latest revision as of 21:55, 25 June 2026

Description

An all around NSIS language package for[https://pulsar-edit.dev/ Pulsar

Grammar

Syntax highlighting of all commands in NSIS versions 2.46 & 3.12 and their included plug-ins

Completions

Tab-completions for syntax, useful snippets for quick scaffolding

screenshot.gif

Code Formatting

The extensions has built-in code formatting using the dent formatter

Extension Packages

You can further extend #nsis support in Pulsar.

Installation

Pulsar Package Manager (ppm)

Install package from ppm install language-nsis (or use the GUI)

Git

Change to the Pulsar 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 to MessageBox MB_OK
  • onInit completes to a Function .onInit block
  • LogicLib completes to !include "LogicLib.nsh"`

Building

There are many ways to compile NSIS scripts in Pulsar. But before we go into detail, make sure makensis is in your PATH PATH environmental variable.

As of v4.0.0 of this package, you can compile scripts without relying on third-party packages. To do so, select “NSIS: Save & Compile” from the command-palette or use the shortcut Ctrl+Alt+M (that's Shift+Alt+M on Windows.)

Third-party packages

In addition to that, you can choose from the following build packages to compile NSIS:

Links