29

While I wouldn't expect vimscript to be immediately available for highlighting, I think other languages aren't available either. I just tried to add it to this answer using both <!-- language: bash --> and <!-- language: lang-sh --> to no effect in the edit preview (so I didn't submit the suggestion).

| |
  • I just did notice now that is no support for Vim on Google Prettify :| – adelarsq Feb 4 '15 at 14:20
  • 1
    How well would the naïve syntax highlighting work with Vimscript? Enabling syntax highlighting might be harmful, if Vimscript doesn't look good. – 200_success Feb 4 '15 at 16:05
  • @200_success You can force disable syntax highlighting. And I don't know how the default is determined, but if the default can be set to no highlighting, that would be good too. – muru Feb 4 '15 at 16:10
  • I would love to help out with this feature. I think it is important, especially since many questions will be filed under .vimrc where highlighting would be helpful. From my experience, highlighting may not appear until you post and scroll through the page... Or unless the correct language is a tag. – onebree Feb 12 '15 at 15:44
  • @muru cant you enable this as a moderator? – Steven Penny Apr 17 '16 at 0:10
  • @StevenPenny as far as I know, nope. It has to be enabled by SE devs. – muru Apr 17 '16 at 11:42
  • @StevenPenny checked, muru's right. There are no mod options to do this, I think because it's a feature disabled by default. – ArtOfCode Apr 17 '16 at 13:41
  • Do we have to wait the end of the beta phase to get this feature enabled? It can help discerning comments or keywords and comes in useful with shell scripts for example. SE uses the tags on the question to infer the language. – LEI Aug 25 '17 at 17:06
  • @LEI this is status-completed; syntax highlighting has been enabled months ago. – muru Aug 25 '17 at 22:34
  • @muru Oh right. I understand that to enable a new language on SE it has to be merged upstream, or does it? This gist if working properly could add support for vimscript here. For the record there is no feature or pull request on GitHub, at the moment. – LEI Aug 26 '17 at 9:34
  • @LEI you should check out the linked posts. See vi.meta.stackexchange.com/q/1341/205 – muru Aug 26 '17 at 9:36

You must log in to answer this question.

Browse other questions tagged .