Skip to content

how to render preformatted text with overflow #4439

Answered by simonswiss
nskalis asked this question in Help
Discussion options

You must be logged in to vote

Hey!

Try moving your utility classes to the pre tag instead of the code:

<pre class="pre-scrollable h-24 overflow-y-auto">
	<code>
            {{ output_data.cli }}
        </code>
<pre>

Not sure if this is exactly what you want (and what the pre-scrollable class does), but it will allow for vertical and horizontal scrolling:

https://play.tailwindcss.com/Err1qC6lkh

Hope it helps!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by nskalis
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants