Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Support for the MS PowerShell programming language.
branch: master

Update CONTRIBUTING.md

fix my poor English
latest commit 0d9478d117
Sergei Vorobev vors authored

README.md

Status: Build status

PowerShell

Support for the MS PowerShell programming language.

Install

  1. Install package control for Sublime Text.
  2. Install the PowerShell package:

    1. Ctrl + Shift + P
    2. install
    3. powershell

Development

Requirements

  • Python 3.3 (for build scripts)

Publishing This Package Locally as a Directory

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
  1. Clone this repo to a folder of your choice
  2. Make sure you have no PowerShell.sublime-package under the {Data}/Installed Packages directory.
  3. Run ./bin/Build-Folder.ps1 on the command line.

Generating PowerShell.sublime-package

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

Syntax

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:

  1. Using Package Control, install the AAAPackageDev package.
  2. Open PowershellSyntax.tmLanguage.
  3. Call Ctrl + Shift + P + convert to Yaml and Rearrange. You will get a new file: Support/PowershellSyntax.YAML-tmLanguage.
  4. Edit the YAML file.
  5. Call Ctrl + Shift + P + convert (YAML, JSON, Plist) to. You will get and updated version of the plist file.

Running the Test Suite

Requirements

How to Run the Tests

Open the command palette, then select 'UnitTesting'. Type in 'PowerShell' and press enter.

Contributing

See CONTRIBUTING.md.

Something went wrong with that request. Please try again.