Sublime Text Completions: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(Created page with "== Description == A powerful syntax completion for [http://www.sublimetext.com/ Sublime Text], supporting a large array of commands, macros and plugins that come bundled with...")
 
No edit summary
Line 50: Line 50:
* Copy the folder to your Sublime Text 2 '''''Packages\User''''' directory
* Copy the folder to your Sublime Text 2 '''''Packages\User''''' directory


== Links ==
== Usage ==


* [https://github.com/idleberg/NSIS-Sublime-Text Project on Github]
=== Completion ===
Start typing any command and use the tab key to complete the the command. Since Sublime Text supports fuzzy search out of the box, you can for instance type ''mbyn'' and press enter to complete a ''MessageBox'' command with ''MB_YESNO'' buttons. Commands such as ''Section'', ''Functions'', ''PageEx'', ''!macro'', ''${If}'' will automatically be closed on completion.
 
=== Snippets ===
There are currently different kinds of scaffolding snippets included, each of them will produce an empty script file. You can activate these by typing ''scaff'' in the editor.
 
== Link ==
 
* [https://github.com/idleberg/NSIS-Sublime-Text Github]


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

Revision as of 13:17, 16 May 2013

Description

A powerful syntax completion for Sublime Text, supporting a large array of commands, macros and plugins that come bundled with NSIS v2.46

Also included in this package are snippets for scaffolding different types of empty scripts.

Features

  • all inbuilt NSIS commands, variables, defines and constants
  • Plugins:
    • AdvSplash
    • Banner
    • BgImage
    • Dialer
    • InstallOptions
    • LangDLL
    • Math
    • nsDialogs
    • nsExec
    • NSISdl
    • Splash
    • StartMenu
    • System
    • UserInfo
    • VPatch
  • "Useful Headers":
    • FileFunc.nsh
    • WordFunc.nsh
    • LogicLib.nsh
    • Modern.nsh
    • Sections.nsh
    • WinMessages.nsh
    • WinVer.nsh
    • x64.nsh
  • Includes, Graphics, UIs
  • Snippets
    • Basic Script
    • MUI2 Script
    • nsDialogs Scripts

Installation

Package Control

The easiest way to install the package is to use Package Control.

Download Manually

  • Download the files using the GitHub .zip download option
  • Unzip the files and rename the folder to NSIS-Sublime-Text
  • Copy the folder to your Sublime Text 2 Packages\User directory

Usage

Completion

Start typing any command and use the tab key to complete the the command. Since Sublime Text supports fuzzy search out of the box, you can for instance type mbyn and press enter to complete a MessageBox command with MB_YESNO buttons. Commands such as Section, Functions, PageEx, !macro, ${If} will automatically be closed on completion.

Snippets

There are currently different kinds of scaffolding snippets included, each of them will produce an empty script file. You can activate these by typing scaff in the editor.

Link