# Easy way to change preformatted text (code) button?

**URL:** https://meta.discourse.org/t/easy-way-to-change-preformatted-text-code-button/16760
**Category:** Feature
**Created:** [June 22, 2014, 4:03am UTC](https://meta.discourse.org/t/easy-way-to-change-preformatted-text-code-button/16760 "2014-06-22T04:03:16Z")
**Posts on this page:** 1
**Showing post:** 42

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [June 26, 2016, 7:57pm UTC](https://meta.discourse.org/t/easy-way-to-change-preformatted-text-code-button/16760/42 "2016-06-26T19:57:30Z")

</div>

> [@codinghorror](#):
>
> I definitely support a site setting to accommodate either kind of audience.

Okay, we now have a site setting for this: `code formatting style`

 ![](https://global.discourse-cdn.com/meta/original/3X/c/e/ce9037b5115aa3c36d3ceb4f0eb20e23b019b5c1.png)

Setting `code formatting style` to `code-fences` will default code button in composer to use fenced/code blocks. Example:

 ![](https://global.discourse-cdn.com/meta/original/3X/7/2/726fe68d5b6a7733c56efbb00ab99b0cddd632f7.png)

* * *

[https://github.com/discourse/discourse/commit/83309752ae0fc224fadc73cd410dc682e7e54b3c](https://github.com/discourse/discourse/commit/83309752ae0fc224fadc73cd410dc682e7e54b3c)

---

_[View the full topic](https://meta.discourse.org/t/easy-way-to-change-preformatted-text-code-button/16760)._
