jerone / UserScripts

🐵 My UserScripts
https://github.com/jerone/UserScripts#readme
GNU General Public License v3.0
339 stars 39 forks source link

(Github Comment Enhancer) Syntax highlighting #18

Closed jerone closed 8 years ago

jerone commented 10 years ago

Syntax highlighting.

Requires code blocks: https://github.com/jerone/UserScripts/issues/17

jerone commented 9 years ago

GitHub uses Linguist to perform language detection and syntax highlighting. To find out which keywords are valid, follow the following instructions:

  1. Copy contents from https://raw.githubusercontent.com/github/linguist/master/lib/linguist/languages.yml
  2. Convert YAML to JSON with http://yamltojson.com
  3. Copy JSON to data property on http://jsfiddle.net/jerone/6sz6rctx/ and run it to get list of all languages.