alexkay / hilite.me

hilite.me converts your code snippets into pretty-printed HTML format, easily embeddable into blog posts, emails and websites.
http://hilite.me
GNU Affero General Public License v3.0
418 stars 117 forks source link

hilite.me Site Would Benefit with Update to latest Pygments #10

Open Olliebrown opened 6 years ago

Olliebrown commented 6 years ago

I make use of the hilite.me website frequently for preparing code snippets to post to my course websites and find it quite useful! However, I am now finding that it is out of date with the latest JavaScript languages features and this seems to be because it is built against an earlier version of Pygments.

Specifically, ES6 string-templates (which are pretty ubiquitous these days and handy) do not highlight correctly with the web site. I did a local build of the code here on github and ran the dev server and it looks like the latest version of Pygments does support this syntax (and your code picks up those newer features without needing any changes)! It also picked up several new color schemes provided by Pygments without changes (very nice)!

I'm happy to just keep running it locally when I need it but I just thought I would bring this to your attention in case it's easy to update the hilite.me website. There could, in theory, be lots of other small language changes like this that are being missed just because it's built against and older version of Pygments.

Current hilite.me site:

Example from hilite.me

My local dev build:

Example from dev build

christiansestier commented 3 years ago

Yes, thank you for this really good tool. Just following up on Olliebrown comment. Are there any plans to update the hilite.me api with the latest version of Pygments?