Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rouge theme selection #876

Closed
habamax opened this issue Dec 16, 2017 · 3 comments
Closed

rouge theme selection #876

habamax opened this issue Dec 16, 2017 · 3 comments
Assignees
Milestone

Comments

@habamax
Copy link
Contributor

habamax commented Dec 16, 2017

Is it possible to select theme for rouge syntax highlighter?

There is asciidoctor-rouge extension that I use to emit highlighted code to HTML and it uses:

:rouge-theme: github
Obviously it doesn't work with asciidoctor-pdf...

@mojavelinux
Copy link
Member

Yes. You can set the Rouge theme. The correct attribute name is rouge-style. Please see the docs.

https://github.com/asciidoctor/asciidoctor-pdf/blob/master/docs/theming-guide.adoc#source-highlighting-theme

@mojavelinux mojavelinux added this to the support milestone Dec 17, 2017
@mojavelinux mojavelinux self-assigned this Dec 17, 2017
@habamax
Copy link
Contributor Author

habamax commented Dec 17, 2017

thx!

I am kind of embarassed -- it is not the first time I look for smth in the asciidoctor-pdf docs and can't find what I need although it is in the docs.

@mojavelinux
Copy link
Member

Trust me, I understand. In fact, I think this information needs to be in the main README. I'll make a note to add it there too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants