7

The Nim language (tag nim-lang) is supported in highlight.js, but it is not yet supported on Stack Overflow: hljs.registerLanguage('nim', ... is not present in the highlight.js loader. See the reference question on meta.

8
  • Tons of languages are supported by highlight.js but not by SO, and Nim only has 400 questions here. Could you explain why this one should get priority over supporting other languages with more questions?
    – Erik A
    Oct 19, 2020 at 11:38
  • Most likely other languages should indeed have priority over this, I am not stating any priority with this request. I am aware of the fact that Nim has very few questions in SO, since the forum (forum.nim-lang.org) is mostly used for questions. I personally think Nim community would benefit from an increased SO usage and I expect that this will happen soon enough given the sustained growth of the community. Feel free to evaluate this feature request with the appropriate priority and also to let me know if this is not the appropriate channel for such a feature request. Oct 19, 2020 at 13:25
  • 1
    @pietroppeter There is a Tampermonky script to add support for extra languages that you could use if seeing Nim higlighted would be of benefit to just yourself. I'm sure it could easily be converted into a Chrome plugin as well if someone had the time. It's also possible communities without languages supported by SO could encourage the use of such plugins to improve their individual SO experiences... Oct 19, 2020 at 20:33
  • Thanks that is good to know, I will check it out! Oct 20, 2020 at 3:27
  • @josh-goebel I was not able to find any Tampermonkey script to do what you suggest. I guess my google-fu is not up to the task! Oct 20, 2020 at 9:04
  • 1
    @pietroppeter meta.stackexchange.com/a/354427/853855 Oct 20, 2020 at 18:21
  • Thanks, right under my nose! Oct 21, 2020 at 5:42
  • 2
    Cross-site duplicate (MSE, posted two days prior): Add syntax highlighting support for Nim Oct 21, 2020 at 15:37

0

You must log in to answer this question.

Browse other questions tagged .