GithubHelp home page GithubHelp logo

isabella232 / editorsyntax Goto Github PK

View Code? Open in Web Editor NEW

This project forked from powershell/editorsyntax

0.0 0.0 0.0 220 KB

Syntax highlighting files for editors (VSCode, Atom, SublimeText, TextMate, etc) and Github!

License: MIT License

JavaScript 1.92% PowerShell 94.29% CoffeeScript 3.79%

editorsyntax's Introduction

Build status Join the chat at https://gitter.im/PowerShell/EditorSyntax

PowerShell Syntax Definition for Editors

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 in the following editors and extensions:

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.

Status

We are starting with the current state of the TextMate grammar that is being used in both VS Code and Sublime Text. There are a number of existing issues with the grammar that we need to track down and fix. Please see issue #1 for more details.

Build and Test

NOTE: You can grab a build of the current definitions as they exist in Github from Appveyor

Prerequisites

  • Node.JS, >= 8.9.1
  • Atom text editor (tests)

Build (build.ps1)

  1. Run build.ps1 to generate the grammar.

    PS> .\build.ps1
    
  2. The .json file will be generated in ./grammars/ at the root of the project.

Test (build.ps1)

Requires the Atom text editor be installed.

  1. Run .\build.ps1 with -Test. Which will build the grammar file and run all of the specs.

    PS> .\build.ps1 -Test
    

Build (npm)

  1. Use npm to install dependencies:

    npm install
    
  2. Run the build-grammar script to generate the json file.

    npm run build-grammar
    
  3. The .json file will be generated in ./grammars/ at the root of the project.

Test (Atom cli)

  1. Build the grammar file using the above steps.

  2. 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.

    atom --test spec
    

Contributing

We 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.

Maintainers

License

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.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

editorsyntax's People

Contributors

gravejester avatar omniomi avatar kborowinski avatar daviwil avatar tylerleonhardt avatar msftrncs avatar vors avatar glachancecmaisonneuve avatar keith-hall avatar iisresetme avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.