Sublime Text: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
No edit summary
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Description ==
== Description ==


There are several packages available to turn [http://www.sublimetext.com/ Sublime Text] into a powerful development environment.
There are several packages available to turn [http://www.sublimetext.com/ Sublime Text] into a powerful development environment, and each of them can be installed separately via [https://packagecontrol.io/browse/labels/nsis Package Control].


=== All-in-one download ===
However, the more convenient way to add NSIS support into Sublime Text is using the [https://github.com/NSIS-Dev/sublime-nsis NSIS Developer] package, which is basically a collection of the mentioned individual packages.
 
A combo download all of the individual packages listed below is available.
 
1. Clone the [https://github.com/NSIS-Dev/Sublime-Text-Packages repository] or download its manually<br/>
2. Compile the installer located in the script folder<br/>
3. Execute installer and follow instructions
 
'''''Note:''' The all-in-one download contains all of the following packages:''
 
=== Syntax Highlighter ===
 
[[File:NSIS_Syntax_Highlighting.png]]
 
==== Install with Package Control ====
 
1. Make sure you already have [http://wbond.net/sublime_packages/package_control Package Control] installed<br/>
2. Choose ''Install Package'' from the Command Palette (Ctrl+Shift+P on Windows and Linux, ⇧⌘P on OS X)<br/>
3. Select ''NSIS'' and press press '''Enter'''
 
==== Install with Git  ====
 
Change to the Sublime Text ''Packages'' directory and clone the repository:
 
git clone <nowiki>https://github.com/SublimeText/NSIS.git</nowiki>
 
 
=== Syntax Completion (Basic) ===
 
Syntax completion supports all commands up to NSIS v3.0a0, including deprecated commands.


=== Screenshot ===
[[File:NSIS_Completions.gif]]
[[File:NSIS_Completions.gif]]


==== Install with Package Control ====
=== Features ===
 
* NSIS Grammar<br>
1. Make sure you already have [http://wbond.net/sublime_packages/package_control Package Control] installed<br/>
* NLF Grammar<br>
2. Choose ''Install Package'' from the Command Palette (Ctrl+Shift+P on Windows and Linux, ⇧⌘P on OS X)<br/>
* Syntax Completion<br>
3. Select ''NSIS Completions & Snippets'' and press '''Enter'''
* Code Snippets<br>
 
* Build System (Windows, Unix)<br>
==== Install with Git ====
 
Change to the Sublime Text ''Packages'' directory and clone the repository:
 
git clone <nowiki>https://github.com/idleberg/NSIS-Sublime-Text.git</nowiki>
 
=== Syntax Completion (Plugins) ===
 
For extended syntax completion, you can install this additional package with support for 160+ NSIS plug-ins and macros.
 
[[File:NSIS_Plug-in_Completions.gif]]
 
==== Install with Package Control ====
 
1. Make sure you already have [http://wbond.net/sublime_packages/package_control Package Control] installed<br/>
2. Choose ''Install Package'' from the Command Palette (Ctrl+Shift+P on Windows and Linux, ⇧⌘P on OS X)<br/>
3. Select ''NSIS Plug-in Completions'' and press '''Enter'''
 
==== Install with Git ====
 
Change to the Sublime Text ''Packages'' directory and clone the repository:
 
git clone <nowiki>https://github.com/idleberg/NSIS-Sublime-Text-Addons.git</nowiki>
 
=== Syntax Completion (Language Files) ===
 
If you are a translator, this package adds syntax completion and snippets for NSIS Language Files (.nsf)
 
==== Install with Package Control ====
 
1. Make sure you already have [http://wbond.net/sublime_packages/package_control Package Control] installed<br/>
2. Choose ''Install Package'' from the Command Palette (Ctrl+Shift+P on Windows and Linux, ⇧⌘P on OS X)<br/>
3. Select ''NSIS Plug-in Completions'' and press '''Enter'''
 
==== Install with Git ====
 
Change to the Sublime Text ''Packages'' directory and clone the repository:
 
git clone <nowiki>https://github.com/idleberg/NSIS-Language-File-Sublime-Text.git</nowiki>
 
=== Command Reference Menu ===


Look up any NSIS command from Sublime Text's context menu
== Installation ==


==== Install with Git ====
=== Package Control ===


Change to the Sublime Text ''Packages'' directory and clone the repository:
The easiest way to install is via [http://wbond.net/sublime_packages/package_control/ Package Control]


git clone <nowiki>https://github.com/idleberg/NSIS-Sublime-Text-Menu.git</nowiki>
1. Add our repository <code><nowiki>https://nsis-dev.github.io/sublime-nsis-ide/repository.json</nowiki></code><br>
2. Choose “Install package” from the Command Palette (<kbd>Super</kbd>+<kbd>Shift</kbd>+<kbd>p</kbd>)<br>
3. Select “NSIS Developer” and press <kbd>Enter</kbd><br>


=== Build System ===
=== GitHub ===


The build system makes it easy to compile your scripts within Sublime Text. It is part of the package for syntax highlighting, but you also download it on its own.
1. Change to your Sublime Text <code>Packages</code> directory<br>
2. <code><nowiki>git clone https://github.com/NSIS-Dev/sublime-nsis.git</nowiki> 'NSIS Developer'</code><br>


==== Download ====
=== Windows Installer ===


<attach>Sublime_Text_Build_Systems_for_NSIS.zip</attach>
1. Download the [https://github.com/NSIS-Dev/sublime-nsis/releases latest release]<br>
2. Compile <code>Support/installer.nsi</code><br>
3. Run setup and follow instructions<br>


== Links ==
== Links ==
* '''[https://github.com/NSIS-Dev/Sublime-Text-Packages All-in-one Download]'''<br />
[https://github.com/NSIS-Dev/sublime-nsis/ NSIS Developer on GitHub]
* [https://github.com/SublimeText/NSIS Syntax Highlighter & Build System]<br />
* [https://github.com/idleberg/NSIS-Sublime-Text Syntax Completion (Basic)]<br />
* [https://github.com/idleberg/NSIS-Sublime-Text-Addons Syntax Completion (Add-ons)]<br />
* [https://github.com/idleberg/NSIS-Language-File-Sublime-Text Syntax Completion (Language Files)]<br />
* [https://github.com/idleberg/NSIS-Sublime-Text-Menu Command Reference Menu]


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

Latest revision as of 21:52, 26 May 2017

Description

There are several packages available to turn Sublime Text into a powerful development environment, and each of them can be installed separately via Package Control.

However, the more convenient way to add NSIS support into Sublime Text is using the NSIS Developer package, which is basically a collection of the mentioned individual packages.

Screenshot

NSIS Completions.gif

Features

  • NSIS Grammar
  • NLF Grammar
  • Syntax Completion
  • Code Snippets
  • Build System (Windows, Unix)

Installation

Package Control

The easiest way to install is via Package Control

1. Add our repository https://nsis-dev.github.io/sublime-nsis-ide/repository.json
2. Choose “Install package” from the Command Palette (Super+Shift+p)
3. Select “NSIS Developer” and press Enter

GitHub

1. Change to your Sublime Text Packages directory
2. git clone https://github.com/NSIS-Dev/sublime-nsis.git 'NSIS Developer'

Windows Installer

1. Download the latest release
2. Compile Support/installer.nsi
3. Run setup and follow instructions

Links

NSIS Developer on GitHub