Support for the MS PowerShell programming language.
-
Install package control for Sublime Text.
-
Install the PowerShell package:
Ctrl + Shift + P
install
powershell
- Python 3.3 (for build scripts)
This is the recommended way of testing this package locally.
First of all, you need to create a config file:
%HOME%/.sublime-package-dev
Add this content:
global-win editor ~/path/to/sublime_text.exe
global-win installed-packages ~/path/to/sublime-text/Installed Packages
- Clone this repo to a folder of your choice
- Make sure you have no PowerShell.sublime-package under the
{Data}/Installed Packages
directory. - Run ./bin/Build-Folder.ps1 on the command line.
This method is not recommended at present.
First of all, you need to create a config file:
%HOME%/.sublime-package-dev
Add this content:
global-win editor ~/path/to/sublime_text.exe
global-win installed-packages ~/path/to/sublime-text/Installed Packages
- Clone this repo to a folder of your choice
- Open the
PowerShell.sublime-project
included as a project - Select Tools → Build Systems → Run
- Press F7 to build and publish locally a new dev version
The plist file PowershellSyntax.tmLanguage is the syntax definition's master file.
However, the recommended way to edit the syntax definition is YAML format. To use this format, follow these steps:
- Using Package Control, install the
AAAPackageDev
package. - Open PowershellSyntax.tmLanguage.
- Call
Ctrl + Shift + P
+convert to Yaml and Rearrange
. You will get a new file: Support/PowershellSyntax.YAML-tmLanguage. - Edit the YAML file.
- Call
Ctrl + Shift + P
+convert (YAML, JSON, Plist) to
. You will get and updated version of the plist file.
- UnitTesting (install via Package Control)
Open the command palette, then select 'UnitTesting'. Type in 'PowerShell' and press enter.
See CONTRIBUTING.md.