Git Product home page Git Product logo

sublime-cjsx's Introduction

NOTE: forked to add support of short syntax for JSX fragments (<> and </>)

sublime-cjsx

Sublime syntax highlighting for CJSX

Version Support

This package uses the .sublime-syntax syntax definition for rich highlighting and improved performance. As a consequence, only Sublime Text 3, Build 3103 and newer is supported. If you're using Sublime Text 2 or an older version of Sublime Text 3, you can retrieve the old .tmLanguage file from this commit -- however, only the master .sublime-syntax definition will receive future updates.

Installation

Install via Package Control

  1. You will need the Package Control Package Manager for Sublime
  2. Open the command pallete with โŒ˜+shift+p
  3. Type install and select Package Control: Install Package
  4. Wait a moment for the package list to appear, and type cjsx and select CJSX Syntax
  5. Open a .cjsx file and in the lower right hand corner of your Sublime window, open the syntax dropdown.
  6. Select "Open all with current extension as..." and then choose 'CJSX'

Install from source

To install this plugin from Github, follow these steps:

  1. Open Sublime and open "Package Control" (cmd + shift + p).
  2. Type "Add Repository"; select the result (hit enter).
  3. At the bottom of your Sublime window you will see a text input that prompts you for the Github URL.
  4. Copy and paste: "https://github.com/Guidebook/sublime-cjsx".
  5. Give Sublime a few minutes to add the repo.
  6. Open "Package Control" again (cmd + shift + p) and type "Install Package".
  7. Type "sublime cjsx"; select the result (hit enter).
  8. Give Sublime a few minutes to install the package.
  9. Open a .cjsx file and in the lower right hand corner of your Sublime window, open the syntax dropdown.
  10. Select "Open all with current extension as..." and then choose 'CJSX'

Credit

Syntax highlighting adapted from sublime-react by Facebook / Jonas Gebhardt [email protected].

sublime-cjsx's People

Contributors

cooncesean avatar schneidmaster avatar geoffdaigle avatar kwood avatar michaelhoste avatar

Watchers

 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.