# Disable Code Formatting for inappropriate 4 space indent?

**URL:** <https://meta.discourse.org/t/disable-code-formatting-for-inappropriate-4-space-indent/112161>\
**Category:** Feature\
**Created:** [20.Март.2019 16:36:46 UTC](https://meta.discourse.org/t/disable-code-formatting-for-inappropriate-4-space-indent/112161 "2019-03-20T16:36:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)\
**Post date:** [20.Март.2019 16:53:24 UTC](https://meta.discourse.org/t/disable-code-formatting-for-inappropriate-4-space-indent/112161/2 "2019-03-20T16:53:24Z")

</div>

> [@outofthebox](#):
>
> Is it possible to disable everyone from applying the ‘code’ format to content in their post?

How do they use a code by mistake? By clicking the `code` button in the editor? Or simply leaving 4 spaces at the beginning of the line?

You can try to hide the code button with CSS using:

```css
.code.btn {
    display: none;
}

```

You can also change the site setting `code formatting style` from the default `4-spaces-indent` to `code-fences`. If users can leave 4 blanks spaces before a line (maybe because they use emails?) it is difficult for them to use ``` by mistake.

---

_[View the full topic](https://meta.discourse.org/t/disable-code-formatting-for-inappropriate-4-space-indent/112161)._
