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

Improve rendering of code blocks / code listings #211

Open
skaldarnar opened this issue Apr 21, 2023 · 2 comments · May be fixed by #243
Open

Improve rendering of code blocks / code listings #211

skaldarnar opened this issue Apr 21, 2023 · 2 comments · May be fixed by #243
Labels
enhancement New feature or request Good First Issue Good for newcomers

Comments

@skaldarnar
Copy link
Member

We are a technical project, and we'll probably show source code and code listings on our website every now and then.
Thus, it would be great if such code listings would fit into the overall theme and look better.

Right now, code blocks are hard to read due to a small font size.

image

I think a layout similar to how this is rendered here on Github would be a good improvement. Ideally, we'd also support language tags to get code highlighting.

@skaldarnar skaldarnar added enhancement New feature or request Good First Issue Good for newcomers labels Apr 21, 2023
@skaldarnar skaldarnar changed the title Improve rendering of source code Improve rendering of code blocks / code listings Apr 21, 2023
@Rukki13
Copy link
Contributor

Rukki13 commented Apr 30, 2024

Hi, i've fixed the font size and imported the prism CSS style sheet.
it now looks better:
image
For better syntax highlighting tailored for a specific language, like in the example below, the language must be specified in the md file above the code blocks.
image
image

@Rukki13
Copy link
Contributor

Rukki13 commented Apr 30, 2024

I've made a pull request here: #243

@jdrueckert jdrueckert linked a pull request May 2, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Good First Issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants