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
I'm submitting this issue as a small enhancement request, hoping it doesn't qualify as a request for a whole new language.
Since valid JSON5 is also valid JavaScript at the same time, the current JavaScript parser does a good job with highlighting it – better than JSON/JSONC.
I'm using highlight.js to enhance Markdown syntax highlighting within code fences, where users would be expected to annotate their code fences like this:
...and not tag them as javascript instead, just to get the content parsed correctly.
The solution you'd prefer / feature you'd like to see added...
A simple change to the alias list in javascript.js, which I'm prepared to submit myself.
Any alternative solutions you considered...
n/a
The text was updated successfully, but these errors were encountered:
I'm submitting this issue as a small enhancement request, hoping it doesn't qualify as a request for a whole new language.
Since valid JSON5 is also valid JavaScript at the same time, the current JavaScript parser does a good job with highlighting it – better than JSON/JSONC.
I'm using highlight.js to enhance Markdown syntax highlighting within code fences, where users would be expected to annotate their code fences like this:
...and not tag them as
javascript
instead, just to get the content parsed correctly.The solution you'd prefer / feature you'd like to see added...
A simple change to the alias list in
javascript.js
, which I'm prepared to submit myself.Any alternative solutions you considered...
n/a
The text was updated successfully, but these errors were encountered: