Skip to content

How can I change font of verbatim content? #55

Answered by Omikhleia
nawordar asked this question in Q&A
Discussion options

You must be logged in to vote

Greetings,

Good question. Eventually in the "resilient" scheme, this ought to be done with styles, possibly with inheritance, to cover both inline code and code blocks -- Currently they just rely on SILE's code and verbatim directly, respectively -- a quick and dirty choice (They both pick the Hack font directly and independently, in SILE's core implementation)

To be honest I did not work much on these, as my main focus currently is in on novels, which seldom need code (inline or verbatim) ;)

(Code blocks also ought to have a better solution for syntax highlighting, currently only supported for Lua with a naive approach and a hard-coded theme, but that's a broader topic).

A workaround for…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@nawordar
Comment options

@nawordar
Comment options

@Omikhleia
Comment options

Answer selected by nawordar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants