# getPreLanguage

@Incubating
@Optional
@Input
abstract fun getPreLanguage(): Property<String>(source)

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