github-linguist / linguist

Language Savant. If your repository's language is being reported incorrectly, send us a pull request!
MIT License
12.12k stars 4.2k forks source link

Add support for highlighting "http" #1968

Closed msabramo closed 9 years ago

msabramo commented 9 years ago

I like having syntax highlighting when looking at HTTP requests and responses, mostly for the headers, which is simple to develop a grammar for.

Here's a grammar that I created in Lightshow.

screen shot 2015-01-07 at 10 06 32 pm

msabramo commented 9 years ago

Here's a gist with the http.json grammar: https://gist.github.com/msabramo/bd6459bc7f8d04b64404

arfon commented 9 years ago

Hi @msabramo - thanks for this contribution! We've actually got a pull request that's nearly complete over here: https://github.com/github/linguist/pull/1975