Skip to content

Is it possible to limit the number of displayed lines in a code block? #2247

Answered by facelessuser
hellt asked this question in Q&A
Discussion options

You must be logged in to vote

Yep, just add a special class and some CSS to trigger off the class turns it into a scrollable code block.

``` {.python .code-scroll}
some long code...
```

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@facelessuser
Comment options

@hellt
Comment options

@hellt
Comment options

@facelessuser
Comment options

@hellt
Comment options

Answer selected by facelessuser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants