On Stack Overflow I have answered many questions about Spock and Geb, two Groovy test frameworks. For years, I have used <!-- language: lang-groovy -->
in combination with indentation by four spaces. Now I found out this syntax is deprecated, but for other languages like Java it still works, as I can see in my old answers. They have not been migrated to ```java
. So I have several questions:
Will there be automatic migration from tag-based code block syntax highlighting to backtick-based one without indentation?
Specifically for Groovy, syntax highlighting does not work at all anymore, no matter if I use any of
<!-- language: lang-groovy -->
<!-- language: groovy -->
```lang-groovy
```groovy
Will this be fixed? How do I correctly activate Groovy syntax highlighting now? It is not a super exotic language but one of the most popular JVM languages.
Update: This seems to be related to the syntax highlighter migration from Prettify to highlight.js which seems to have happened yesterday. But according to the list of supported languages (select categories "misc" or "all"), Groovy is supported by highlight.js.
```groovy
seems to be working fine. I edited (but didn't submit) one of your answers. Here's the "before and after".lang-groovy
syntax highlighter in our system, on either Prettify or highlight.js processors. It is supported by highlight.js but we did not pull the language in because we did not support it previously. The groovy tag is set to default, which means the highlighter will attempt to highlight the code based on generic language constructs because it does not know the actual language. If you'd like support, I'd suggest turning this into a feature request.lang-groovy
construct worked fine for years with Prettify. Feel free to check with an older version of StackOverflow.