highlightCsoundOrc

highlightCsoundOrc#

csoundengine.csoundlib.highlightCsoundOrc(code, theme='')[source]#

Converts csound code to html with syntax highlighting

Parameters:
  • code (str) – the code to highlight

  • theme – the theme used, one of ‘light’, ‘dark’. If not given, a default is used (see config[‘html_theme’])

Return type:

str

Returns:

the corresponding html