Lukasa / language-restructuredtext

A ReStructuredText syntax package for Atom
MIT License
27 stars 15 forks source link

Highlight code blocks as their native language. #4

Closed smashwilson closed 10 years ago

smashwilson commented 10 years ago

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.

Lukasa commented 10 years ago

:cake: I'm excited for this.

smashwilson commented 10 years ago

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?

Lukasa commented 10 years ago

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.

Lukasa commented 10 years ago

Alrighty then, let's do this. Thanks so much! :cake: