ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

ns​L Assembler

by idleberg ST2/ST3

nsL Assembler syntax definitions and build system for Sublime Text

Details

  • 3.3.0
    3.1.1
    2.1.0
  • github.​com
  • github.​com
  • 5 months ago
  • 12 minutes ago
  • 3 years ago

Installs

  • Total 650
  • Win 381
  • OS X 113
  • Linux 156
Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8
Windows 1 0 1 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 0 1 0 0 0
OS X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
Linux 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0

Readme

Source
raw.​githubusercontent.​com

nsL Assembler for SublimeText

The MIT License Package Control GitHub release Travis Gitter

nsL Assembler syntax definitions, command completions and build system for Sublime Text.

nsL is a new C-like programming language for writing NSIS installation wizards. The nsL assembler takes nsL code and translates it into original NSIS script which can then be compiled.

Note: This package is compatible with Sublime Text 3 (Build 3103 or higher). Click here for a Sublime Text 2 version of this package.

Screenshot

Screenshot using Hopscotch color scheme

Installation

Package Control

  1. Make sure you already have Package Control installed
  2. Choose “Install Package” from the Command Palette (Super+Shift+p)
  3. Type “nsL Assembler” and press Enter

With auto_upgrade enabled, Package Control will keep all installed packages up-to-date!

Using Git

  1. Change to your Sublime Text Packages directory
  2. Clone repository git clone https://github.com/idleberg/sublime-nsl-assembler.git 'nsL Assembler'

Manual installation

  1. Download the latest stable release
  2. Unzip the archive to your Sublime Text Packages directory

Usage

Completions

You can complete all nsL (and NSIS) commands using the Tab key. Hit Tab again to jump between fields.

Scaffolding

Scaffolding snippets start with the prefix scaffold followed by the type of script you'd like to build:

  • Basic Script
  • MUI2 Script

Example:

With Sublime Text's fuzzy search in mind, you could for instance type scaffBasic to trigger the scaffold:Basic Scriptsnippet and create the following script:

// Scaffolding by https://github.com/idleberg/sublime-nsl-assembler

// Settings ---------------------------------
Name("installer_name");
OutFile("installer_name.exe");
RequestExecutionLevel(user);
InstallDir($PROGRAMFILES . "\\installer_name");

// Includes ---------------------------------


// Pages ------------------------------------
page Components();
page Directory();
page InstFiles();

// Sections ---------------------------------
section section_index("section_name") {

    // your code here

}

// Functions --------------------------------

Use Tab to jump to the next relevant bit of code you might want to change, Shift-Tab to jump back.

Building

You can build your script using the default shortcut or from the Tools menu. Output scripts will be placed in the same folder as your input. Note that as of Windows Vista you need administrative rights to compile scripts in %PROGRAMFILES%, which is the default location for nsL example scripts!

Should the build system be unable to locate the compiler, you should probably re-install NSIS to make sure required registry keys are created. Alternatively, you can specify the install location in the environment variable %NSIS_HOME%. In case of a Permission denied error, change the permissions of the Bash script: chmod +x build.sh.

License

This work is licensed under the The MIT License.

Donate

You are welcome support this project using Flattr or Bitcoin 17CXJuPsmhuTzFV2k4RKYwpEHVjskJktRd