{"id":15021171,"url":"https://github.com/powershell/editorsyntax","last_synced_at":"2025-04-10T03:55:50.416Z","repository":{"id":42215438,"uuid":"59601299","full_name":"PowerShell/EditorSyntax","owner":"PowerShell","description":"PowerShell syntax highlighting for editors (VS Code, Atom, SublimeText, TextMate, etc.) and GitHub!","archived":false,"fork":false,"pushed_at":"2024-07-03T23:09:29.000Z","size":277,"stargazers_count":136,"open_issues_count":68,"forks_count":49,"subscribers_count":26,"default_branch":"main","last_synced_at":"2025-04-10T03:55:44.593Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PowerShell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-24T19:13:54.000Z","updated_at":"2025-04-04T03:35:33.000Z","dependencies_parsed_at":"2024-12-14T01:46:31.049Z","dependency_job_id":null,"html_url":"https://github.com/PowerShell/EditorSyntax","commit_stats":{"total_commits":112,"total_committers":17,"mean_commits":6.588235294117647,"dds":0.6785714285714286,"last_synced_commit":"a08b55bf1146c210f58e844be53c2aa78fd5e610"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2FEditorSyntax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2FEditorSyntax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2FEditorSyntax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2FEditorSyntax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PowerShell","download_url":"https://codeload.github.com/PowerShell/EditorSyntax/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248155001,"owners_count":21056542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T19:56:13.349Z","updated_at":"2025-04-10T03:55:50.388Z","avatar_url":"https://github.com/PowerShell.png","language":"PowerShell","readme":"# PowerShell Syntax Definition for Editors\n\nThis project establishes the central development and maintenance of syntax definition\nfiles for the PowerShell language used by editors that leverage the XML version of the\n[TextMate language grammar format](http://manual.macromates.com/en/language_grammars).\n\nCurrently this syntax definition is used in the following editors and extensions:\n\n- [Visual Studio Code](https://github.com/Microsoft/vscode) by Microsoft\n- [PowerShell Package for Sublime Text](https://github.com/SublimeText/PowerShell) by [Guillermo López-Anglada](https://github.com/guillermooo)\n- [language-powershell for Atom](https://github.com/jugglingnutcase/language-powershell) by [James Sconfitto](https://github.com/jugglingnutcase/)\n\nIn the future we may find a more common syntax that allows us to generate syntax\ndefinitions for editors that don't leverage the TextMate format.\n\n## Status\n\nWe are starting with the current state of the TextMate grammar that is being used in\nboth VS Code and Sublime Text.  There are a number of existing issues with the grammar\nthat we need to track down and fix.  Please see [issue #1](https://github.com/PowerShell/EditorSyntax/issues/1)\nfor more details.\n\n### Prerequisites\n\n- Node.JS, \u003e= 8.9.1\n- Atom text editor (tests)\n\n### Build (build.ps1)\n\n1. Run `build.ps1` to generate the grammar.\n\n    ```\n    PS\u003e .\\build.ps1\n    ```\n\n2. The .json file will be generated in `./grammars/` at the root of the project.\n\n### Test (build.ps1)\n\n\u003e Requires the Atom text editor be installed.\n\n1. Run `.\\build.ps1` with `-Test`. Which will build the grammar file and run all of the specs.\n\n    ```\n    PS\u003e .\\build.ps1 -Test\n    ```\n\n### Build (npm)\n\n1. Use `npm` to install dependencies:\n\n    ```\n    npm install\n    ```\n\n2. Run the `build-grammar` script to generate the json file.\n\n    ```\n    npm run build-grammar\n    ```\n\n3. The .json file will be generated in `./grammars/` at the root of the project.\n\n### Test (Atom cli)\n\n1. Build the grammar file using the above steps.\n\n3. Use the Atom cli command for your os (atom.cmd or atom.sh) to run the tests from the root of the EditorSystax project folder.\n\n    ```\n    atom --test spec\n    ```\n\n## Contributing\n\nWe would love to have community contributions to this project to make PowerShell syntax\nhighlighting great in as many editors as we can.  Please feel free to file issues or\nsend pull requests if you'd like to contribute.\n\n## Maintainers\n\n- [Andy Jordan](https://github.com/andyleejordan)\n- [Nick James](https://github.com/omniomi)\n\n## License\n\nThis extension is [licensed under the MIT License](LICENSE). Please see the\n[third-party notices](Third%20Party%20Notices.txt) file for details on the original\nsource of the TextMate definition that we use.\n\n## Code of Conduct\n\nPlease see our [Code of Conduct](.github/CODE_OF_CONDUCT.md) before participating in this project.\n\n## Security Policy\n\nFor any security issues, please see our [Security Policy](.github/SECURITY.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowershell%2Feditorsyntax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpowershell%2Feditorsyntax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowershell%2Feditorsyntax/lists"}