This project establishes the central development and maintenance of syntax definition files for the PowerShell language used by editors that leverage the XML version of the TextMate language grammar format.
Currently this syntax definition is used by GitHub and by the following editors and extensions:
| Editor | Extension | Developer |
|---|---|---|
| Visual Studio Code | PowerShell | Microsoft |
| Pulsar | language-powershell | James Sconfitto |
In the future we may find a more common syntax that allows us to generate syntax definitions for editors that don't leverage the TextMate format.
This branch includes fixes and improvements to the syntax grammar as well as new tooling for unit tests. See the overview in WHATS_NEW.md.
- Node.JS - tested on the current LTS (26.x at the time of writing) but may work on other versions.
PS> npm installPS> npm run fullPS> npm run buildPS> npm run test
PS> npx textmate-grammar-test testfiles/operators/format.ps1We would love to have community contributions to this project to make PowerShell syntax highlighting great in as many editors as we can. Please feel free to file issues or send pull requests if you'd like to contribute.
This extension is licensed under the MIT License. Please see the third-party notices file for details on the original source of the TextMate definition that we use.
Please see our Code of Conduct before participating in this project.
For any security issues, please see our Security Policy.