deckgo/deckdeckgo

Long Lines in Code Highlighter Wrap to the Next Line.

Bradleykingz opened this issue · 2 comments

Affected part of DeckDeckGo

  • Studio (online editor)
  • Remote control
  • Poll
  • Site
  • Documentation
  • Demo
  • Starter kit
  • Web Components
  • Templates

Reproduction

Steps to reproduce:

  1. Add code to code highlighter
  2. Long text wraps to the next line

Expected Behavior

Long lines of text should not wrap. They should be scrollable horizontally.

Actual Behavior

image

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

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.

Perfect. Thanks.