8

I noticed that there isn't (as far as I'm aware) any syntax highlighting for VimL as of now.

Now that Google prettify is replaced with highlight.js, wouldn't it be possible to have one now?

6
  • 2
    It would be, but their immediate plan doesn't include adding new languages. Just parity with the existing set.
    – muru
    Sep 14, 2020 at 6:21
  • Kinda sad, given it doesn't look too hard to add support for a new syntax highlighting (though I'm not a javascript developer, so i guess i can't be sure). Sep 14, 2020 at 14:52
  • 2
    It won't be, but when you're making such a big change, it's best to limit the scope of the initial change.
    – muru
    Sep 14, 2020 at 15:08
  • Yeah, make sense. Maybe someone can make a list of all the non-supported langs to add to the syntax highlighting, so it might have more interest to get added (than just adding support for VimL alone i mean). Sep 14, 2020 at 15:30
  • 3
    I also remember reading that the rollout for other sites will happen after the rollout for SO
    – D. Ben Knoble Mod
    Sep 14, 2020 at 18:05
  • It's currently only rolled out to meta.se and meta.so. Rest of the network gets the changes on Sept 24th.
    – Rich
    Sep 15, 2020 at 10:54

1 Answer 1

6

Very disappointingly for us, although part of the rationale for changing from Prettify to highlight.js was that with Prettify "no new language syntaxes are being supported", the current change does not add highlighting for Vimscript or any other "new" languages.

Worse than that, if these moderator comments are to believed, it sounds as though SE intends to be conservative about adding new languages in the future (emphasis mine):

I hate to be the bearer of bad news, but this update has not added any new language support (officially. Technically sublanguages like Less/scss got snuck in with the css support). […] That being said, adding more languages to our bundle is technically trivial, but we need to be mindful of bloating the deliverable size. I'll keep this suggestion in mind once we revisit and decide whether to add additional language support. — Ben Kelly

In theory, yes. That being said, I've not looking into the possibilities there or how it would impact us (from a bandwidth/hosting perspective) or our users (from a UX/performance perspective). This is definitely something we'll keep in mind if we decide to expand our supported languages in the future. — Ben Kelly

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .