Noogλe
search input
Function of the day
For use in the
defaultTextandexampleoption attributes. Causes the given string to be rendered verbatim in the documentation as a code block with the language bassed on the provided input tag.If you wish to render Nix code, please see
literalExpression.Examples
literalCodeusage examplemyPythonScript = mkOption { type = types.str; description = '' Example python script used by a module ''; example = literalCode "python" '' print("Hello world!") ''; };Inputs
languageTag-
The language tag to use when producing the code block (i.e.
js,rs, etc). text-
The text to render as a Nix expression