# Resize code blocks?

**URL:** <https://meta.discourse.org/t/resize-code-blocks/218460>\
**Category:** Feature\
**Created:** [February 16, 2022, 8:32pm UTC](https://meta.discourse.org/t/resize-code-blocks/218460 "2022-02-16T20:32:05Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)\
**Post date:** [July 20, 2022, 3:31am UTC](https://meta.discourse.org/t/resize-code-blocks/218460/7 "2022-07-20T03:31:50Z")

</div>

I actually did some [work earlier in the year](https://github.com/discourse/discourse/commit/ff96d541e955edb094aa4dc639978bf7ad2f0fc3) to fullscreen code blocks. First, you have to have the `show_copy_button_on_codeblocks` setting enabled. Then, any code block that has a horizontal scroll will have 2 buttons – the copy button and the fullscreen button (the copy button will be there regardless):

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/b/6/8b605eabe010211d29ed21016b7bb03fd6279fa9.png)

Then a modal will be shown without the horizontal scrolling:

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/1/7/f17c21af1793ac4157bd3e6398ea0fd6b26a832c.png)

---

_[View the full topic](https://meta.discourse.org/t/resize-code-blocks/218460)._
