You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 20, 2021. It is now read-only.
I have been using highlight.js to syntax-highlight my .md-files from GitHub, it works very nicely.
I don't know if the syntax highlighting is identical to that of GitHub - probably not - but it does ship with a GitHub color theme, which was close enough for me.
It would probably be a lot simpler to integrate this, than having to call out to Ruby? - basically, just drop in the JS and CSS assets, add one lines of JS to hook it up, and you should be good to go.
Within Github, you can do:
(three back-ticks)php
for example, to get php keywords colored within the code block. I think Github uses Linguist https://github.com/github/linguist
The text was updated successfully, but these errors were encountered: