[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: org2blog: get horizontal scrollbar on code examples?
From: |
Christian Moe |
Subject: |
Re: org2blog: get horizontal scrollbar on code examples? |
Date: |
Sat, 04 Apr 2020 12:33:47 +0200 |
User-agent: |
mu4e 0.9.19; emacs 25.3.2 |
Try adding
.org-src-container .src { overflow: auto; white-space: nowrap }
to the CSS, e.g.:
#+html_head_extra: <style>.org-src-container .src { overflow: auto;
white-space: nowrap }</style>
Cheers,
Christian
Steinar Bang writes:
> Does anyone know of a way to get horizontal scrollbars on code examples,
> instead of line breaks?
>
> I try to make code examples as horizontally compact, but sometimes
> that's not enough, see e.g. some maven <dependency> elements here, and
> the maven command line examples:
>
> https://steinar.bang.priv.no/2020/03/30/how-to-get-test-coverage-back-in-sonarcloud-maven-builds/