Skip to content

Commit

Permalink
Describe how to turn on syntax highlighting in atom editor (#23)
Browse files Browse the repository at this point in the history
* Describe how to turn on syntax highlighting in atom editor

* Update README.md
  • Loading branch information
ezhlobo authored and ForbesLindesay committed Feb 11, 2018
1 parent 6156619 commit e925ee8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,20 @@ npm install babel-plugin-transform-react-jsx --save-dev

Install [eslint-plugin-react-pug](https://github.com/ezhlobo/eslint-plugin-react-pug) to be compatible with [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react).

### Syntax Highlighting in Atom

1. Install [language-babel](https://atom.io/packages/language-babel) and [language-pug-jade](https://atom.io/packages/language-pug-jade)

*I suggest language-pug-jade because it works better for me. But there are more approaches for building pugjs grammar: [language-pug](https://atom.io/packages/language-pug) and [atom-pug](https://atom.io/packages/atom-pug), and you can try them too.*

3. Open settings of language-babel in atom
4. Find the field under "JavaScript Tagged Template Literal Grammar Extensions"
5. Enter: `pug:source.pug`

More details: [gandm/language-babel#javascript-tagged-template-literal-grammar-extensions](https://github.com/gandm/language-babel#javascript-tagged-template-literal-grammar-extensions)

6. Restart the atom

## Examples

### Example 1 - Basic Example
Expand Down

0 comments on commit e925ee8

Please sign in to comment.