Optional languageThe language of the supplied code to highlight. Defaults to tsx if no
filename is provided, or else tries to infer the language from the
filename. You must have previously called loadLanguages([...]) from
PrismJS in order to highlight a given language, if you want something
that is not automatically included when tsx and typescript are
included.
'tsx'
Optional lineWhether or not to prepend a line number to each line.
false
Optional maxThe maximum width to make the block on the screen.
process.stdout.columns or 80.
Optional minThe minimum width to make the block on the screen.
0
Optional paddingHow many spaces to horizontally pad the code block.
1
Optional themeThe theme to use. Either a Theme object, or a string identifying one of the built-in themes.
'moria'
Generated using TypeDoc
Options for the highlighting functions