We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
The comment on lines 2 and 3 is black instead of green
Issue has been around for a while (including on prod!) but for some reason no one quite attended to it
Incorrect syntax highlighting physically hurts my eyes 馃槩 - Oliver
The text was updated successfully, but these errors were encountered:
Unfortunately, updating to the last version of highlight.js (v11.7.0) doesn't seem to fix it.
Style does change slightly though:
Sorry, something went wrong.
On second thoughts, it's probably because of this code in annotations.js
annotations.js
// Add syntax highlighting to the new code viewer $('pre code').each(function () { hljs.highlightBlock(this); });
I think oliver had a wip branch speedgrader-syntax-fix, it might be worth further investigation
speedgrader-syntax-fix
It's mainly because the syntax highlighting is done line by line instead of the whole file
Could consider using https://github.com/wcoder/highlightjs-line-numbers.js
KesterTan
Successfully merging a pull request may close this issue.
The comment on lines 2 and 3 is black instead of green
Issue has been around for a while (including on prod!) but for some reason no one quite attended to it
Incorrect syntax highlighting physically hurts my eyes 馃槩 - Oliver
The text was updated successfully, but these errors were encountered: