The main "What is Syntax Highlighting and how does it work?" Meta question instructs us to open a question tagged [feature-request] to add syntax highlighting for a language which is supported by the highlight.js project, but it is not supported by the version of highlight.js used on Stack Exchange. PowerShell is such a language, so here's a question for it.

At a glance, this question looks a duplicate of:

But Stack Exchange has moved away from Prettify, which didn't support PowerShell, but highlight.js does, so it now comes down to:

  1. Check that the language is supported by highlight.js

If a language is already on the list but not used on Stack Exchange, please raise a feature request here on Meta to have it deployed on the network.

  • @TessellatingHeckler Did you see the TamperMonkey script that can load new languages on demand from the Highlight.js CDN? meta.stackexchange.com/a/354427/853855 Might be helpful for languages SO truly decides they are not going to add to improve the experience of individuals. I'm sure it could easily be turned into a Chrome Extension or something also if anyone was interested. Oct 18, 2020 at 2:57
  • you can raise a feature request on Meta to request that a new version of highlight.js be deployed @KonradRudolph That's definitely my plain understanding at a plain reading of the post. Oct 19, 2020 at 21:57
  • 1
    I've bundled this support into a Chrome extension if that would be helpful to you: github.com/joshgoebel/se_highlightjs It pretty much adds all our missing languages to SE (when they are manually hinted). Also on the list is adding auto-hinting support - so any post tagged "powershell" would "just work". Oct 29, 2020 at 12:18


You must log in to answer this question.

Browse other questions tagged .