Asper Header  1.0.16
The header injector extension
Loading...
Searching...
No Matches
Python

Prepends language-specific text before header if configured.

Prepends language-specific text before header if configured

Parameters
buildHeaderArray of header lines being constructed
eolEnd-of-line type for the document
languageIdOptional language identifier for lookup
Returns
Modified buildHeader array with prepended content if applicable

Checks the languagePrepend configuration for language-specific text to insert before the header comment block. Useful for adding shebangs, encoding declarations, or other language-specific preambles. Handles both string and array configurations.

raw string prefix:

"languagePrepend": {"python": "r"}