Long Lines in Code Highlighter Wrap to the Next Line.
Bradleykingz opened this issue · 2 comments
Bradleykingz commented
Affected part of DeckDeckGo
- Studio (online editor)
- Remote control
- Poll
- Site
- Documentation
- Demo
- Starter kit
- Web Components
- Templates
Reproduction
Steps to reproduce:
- Add code to code highlighter
- Long text wraps to the next line
Expected Behavior
Long lines of text should not wrap. They should be scrollable horizontally.
Actual Behavior
Long lines in a small container wrap to the next line, making it difficult to read the code. Could it be possible to make them scrollable horizontally instead?
Environment
Web
peterpeterparker commented
Hi, it is actually already supported. If you wish to not wrap the lines, you can apply following style:
--deckgo-highlight-code-white-space: pre;
If it would not work, let me know.
Bradleykingz commented
Perfect. Thanks.