Skip to content

Commit

Permalink
Include JS/CoffeeScript grammars in markdown code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Apr 25, 2013
1 parent 4e8c6e2 commit 0640631
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ Check out our [documentation on the docs tab](https://github.com/github/atom/doc
1. `gh-setup atom`

2. `cd ~/github/atom && rake install`

```coffeescript
-> 'hello'
```
20 changes: 20 additions & 0 deletions src/packages/gfm/grammars/gfm.cson
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,26 @@
'match': '^\\s*[-]{3,}\\s*$'
'name': 'comment.hr.gfm'
}
{
'begin': '^```coffee(script)?$'
'beginCaptures':
'0': 'name': 'support.gfm'
'end': '^```$'
'endCaptures':
'0': 'name': 'support.gfm'
'name': 'markup.raw.gfm'
'patterns': ['include': 'source.coffee']
}
{
'begin': '^```(javascript|js)$'
'beginCaptures':
'0': 'name': 'support.gfm'
'end': '^```$'
'endCaptures':
'0': 'name': 'support.gfm'
'name': 'markup.raw.gfm'
'patterns': ['include': 'source.js']
}
{
'begin': '^```.*$'
'beginCaptures':
Expand Down

0 comments on commit 0640631

Please sign in to comment.