-
Notifications
You must be signed in to change notification settings - Fork 53
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
Change Background of inline code statements (backticks) #892
Comments
Does someone know if the code background already is configurable? There are examples in the appearance customization documentation with custom background colors for the code blocks but I don't know if that's individually configurable. |
Very cool theme @Blackjacx! From the provided links, I'm seeing that you have specified a color override which is being used for the code listing background, although maybe it was unexpected. The color for the code listing background can be specified using the By default (without overriding it), this value maps to another color variable called So, you have 2 options to change this:
Hope this helps! The theme you've created looks great so far to me. |
(It sounds like option 2 might be what you're looking for) |
Uhh thanks for reaching out so quickly 👍 I'll try that asap! |
I would suggest contributing enhancements to highlight.js for the way that it tokenizes shell syntax, which is the npm package that we utilize for syntax highlighting purposes. Then we can pick up those enhancements here in Swift-DocC-Render while also benefiting the open source community in general. I think it's pretty common for default shells on many systems to not syntax highlight different parts of command invocations, but I agree that it would be really great if there was a distinguishing colors for executables and arguments as one small example (like my preferred choice of shell does). It's probably not super trivial to make this kind of highlighting work in a way that is compatible with many/most shells though (bash/fish/zsh/etc), since I believe the highlight.js language is shell-agnostic and the syntax may differ between them. |
Hey there, thanks for the quick reply. We will see what we can do here 👍 As a quick fix we was that Swift syntax highlighting works quite well:
Our question today was:
|
The Add Code Listings sections in the Swift-DocC documentation about formatting has a table that list the language identifiers that the renderer currently supports syntax highlighting for. |
Feature Name
Visibility of Inline Code Statements
Description
Hey ✌️
I wondered if it is possible to change the background of inline code statements to lets say gray like the GitHub style markdown is doing it. I was not able to find a DocC Website that has this :-(
I'm building my own and inline code is not very legible...
Motivation
Visibility of Inline Code Statements and my own DocC based "website". I use it as static site generator what works amazingly well.
Importance
No response
Alternatives Considered
No response
The text was updated successfully, but these errors were encountered: