API Reference

Auto-generated API documentation from source code

14 pages in this section

Auto-generated documentation from Rosettes source code.

Browse the complete API with docstrings, type annotations, and source links.

Modules

Module Description
rosettes Main package —highlight(), tokenize(), highlight_many()
rosettes.formatters HTML formatter implementation
rosettes.lexers Language lexer state machines
rosettes.themes Theme and palette definitions

See Also