Skip to content
This repository was archived by the owner on Jul 28, 2020. It is now read-only.

Server-side syntax highlighting? #33

@zmitchell

Description

@zmitchell

I'd like to use Pygments for server-side highlighting, but I can't seem to get it working properly. I set pygmentsUseClasses = true and pygmentsStyle = "monokai", but the style doesn't seem to be applied.

Here's some example code and a screenshot of the result:

{{< highlight python >}}
class someClass(object):
    def __init__(self):
        self.x = 1
{{< /highlight >}}

syntax-highlighting-error

I've poked around the theme and see that you're using Highlight.js, but since I'm not a web programmer I don't really know what to change to get Pygments to do its thing. Is Highlight.js baked into the theme that it would be impractical for me to try getting Pygments to work, or is there an easy solution that I'm not aware of?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions