Sublime Text: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(Created page with "== Description == There are several packages available to turn [http://www.sublimetext.com/ Sublime Text] into a powerful development environment. === Syntax Highlighter ===...")
 
 
(18 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].


=== Syntax Highlighter ===
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.


[[File:Monokai-soda.png]]
=== Screenshot ===
[[File:NSIS_Completions.gif]]


==== Install with Package Control ====
=== Features ===
* NSIS Grammar<br>
* NLF Grammar<br>
* Syntax Completion<br>
* Code Snippets<br>
* Build System (Windows, Unix)<br>


1. Make sure you already have [http://wbond.net/sublime_packages/package_control Package Control] installed<br/>
== Installation ==
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 Enter<br/>


==== 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/SublimeText/NSIS.git</nowiki> "NSIS"
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>


=== GitHub ===


=== Syntax Completion (Basic) ===
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>


Syntax completion supports all commands up to NSIS v3.0a0, including deprecated commands.
=== Windows Installer ===


==== Install with Package Control ====
1. Download the [https://github.com/NSIS-Dev/sublime-nsis/releases latest release]<br>
 
2. Compile <code>Support/installer.nsi</code><br>
1. Make sure you already have [http://wbond.net/sublime_packages/package_control Package Control] installed<br/>
3. Run setup and follow instructions<br>
2. Choose ''Install Package'' from the Command Palette (Ctrl+Shift+P on Windows and Linux, ⇧⌘P on OS X)<br/>
3. Select ''NSIS Autocomplete and Snippets'' 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.git</nowiki> "NSIS"
 
=== Syntax Completion (Plugins) ===
 
For extended syntax completion, you can install this additional package with support for 160+ NSIS plug-ins and macros.
 
==== 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 Autocomplete (Add-ons)'' 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> "NSIS"
 
=== 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 Autocomplete (Add-ons)'' 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> "NSF"
 
=== Command Reference Menu ===
 
Look up any NSIS command from Sublime Text's context menu
 
==== Install with Git ====
 
Change to the Sublime Text ''Packages'' directory and clone the repository:
 
git clone <nowiki>https://github.com/idleberg/NSIS-Sublime-Text-Menu.git</nowiki> "NSF"
 
=== Build System ===
 
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.
 
==== Download ====
 
<attach>Sublime_Text_Build_Systems_for_NSIS.zip</attach>


== Links ==
== Links ==
* [https://github.com/SublimeText/NSIS Syntax Highlighter & Build System]<br />
[https://github.com/NSIS-Dev/sublime-nsis/ NSIS Developer on GitHub]
* [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