Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Olliebrown opened this issue Mar 8, 2018 · 1 comment
Open

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

Olliebrown opened this issue Mar 8, 2018 · 1 comment

Comments

@Olliebrown
Copy link

Olliebrown commented Mar 8, 2018

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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants