Skip to content

[Question] What options are allowed for the codehilite markdown extension? #1019

@wmarshall484

Description

@wmarshall484

I'm using codehilite with the readthedocs theme. If I use the default config

markdown_extensions:
    - codehilite:

the code segments are highlighted, but they don't have a background:
nobackground

If I add the linenums option to codehilite

markdown_extensions:
    - codehilite:
        linenums: True

then it does show a background, but the width varies with the size of the code block and there's no scrolling:
withbackground

My question: is there any way to have codehilight highlighting with a colored background and scrolling? I couldn't find any documentation for what options codehilite allows. I would prefer not to use highlight.js.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions