# Users pasting unformatted code results in unwanted styles

**URL:** <https://meta.discourse.org/t/users-pasting-unformatted-code-results-in-unwanted-styles/29120>\
**Category:** Product Support\
**Created:** [5월 22, 2015, 11:56오전 UTC](https://meta.discourse.org/t/users-pasting-unformatted-code-results-in-unwanted-styles/29120 "2015-05-22T11:56:27Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [5월 22, 2015, 9:32오후 UTC](https://meta.discourse.org/t/users-pasting-unformatted-code-results-in-unwanted-styles/29120/4 "2015-05-22T21:32:00Z")

</div>

Users will have bad results if they paste in raw code without trying to format it as code. There is no way to work around this, no magical AI that can “detect” code and format it for the user.

Two ways:

1. Use the ````` triple backticks at the top and bottom to mark a code block

2. Select the code then press ctrl+k (or use the ![](https://global.discourse-cdn.com/meta/original/3X/4/4/446a393464c889a0ff93160582024f6720610441.png) toolbar button) to indent it all by four spaces

---

_[View the full topic](https://meta.discourse.org/t/users-pasting-unformatted-code-results-in-unwanted-styles/29120)._
