Closed smashwilson closed 10 years ago
:cake: I'm excited for this.
Alrighty, I've taken care of all of the easy ones. Pygments supports a bunch of other grammars, but these are the ones that the GFM language auto-highlights, so at least we'll be consistent!
I'm not sure what to do with Less and Basic support though. Maybe leave them for another PR if someone wants to do the research to see how they map up?
I'm quite happy to leave them for another pull request: they're a little niche, and people will be able to get away without them. Anyone who is genuinely bothered is of course welcome to contribute.
Alrighty then, let's do this. Thanks so much! :cake:
See #3. This is basically cargo-culted entirely from the way the GFM language does it.
Language List
ReStructured Text uses Pygments for syntax highlighting, while the languages Atom/GFM support can be lifted from the GFM plugin.
coffee-?script
=> Atom:source.coffee
js|javascript
=> Atom:source.js
json
=> Atom:source.json
css
=> Atom:source.css
source.less
xml
=> Atom:source.xml
rb|[rd]uby
=> Atom:source.ruby
java
=> Atom:source.java
erlang
=> Atom:source.erlang
csharp|c#
=> Atom:source.cs
php[3-5]?
=> Atom:source.php
source.shell
(Maybe the bash lexer?)py(thon)?|sage
=> Atom:source.python
objective-?c||obj-?c
=> Atom:source.objc
source.basic
=> (is this VB.net?)yaml
=> Atom:source.yaml