For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

getPreLanguage

The default language id applied to preformatted code blocks in rendered doc comments that carry no class attribute.

When set (for example, "groovy"), a post-pass adds class="language-xxx" to the opening tag of such blocks, enabling syntax highlighting for legacy doc-comment code blocks without touching source files. Blocks that already carry any class attribute are left alone.

Only has an effect with Groovy 6.0.0 or later; the option is silently ignored with earlier Groovy versions.

Since

9.8.0