# Inline code blocks in code fence mode

**URL:** <https://meta.discourse.org/t/inline-code-blocks-in-code-fence-mode/48833>\
**Category:** Bug\
**Created:** [August 18, 2016, 10:04pm UTC](https://meta.discourse.org/t/inline-code-blocks-in-code-fence-mode/48833 "2016-08-18T22:04:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![dfabulich](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dfabulich/32/108716_2.png) [@dfabulich](https://meta.discourse.org/u/dfabulich)\
**Post date:** [August 18, 2016, 10:04pm UTC](https://meta.discourse.org/t/inline-code-blocks-in-code-fence-mode/48833/1 "2016-08-18T22:04:27Z")

</div>

In the default mode of the code `</>` button, when you select some text in the middle of a line and click the code button, it wraps that text in single backticks, like ``this``.

We learned about the “code formatting style = code-fences” mode from today’s blog post and turned it on right away, but I was surprised to find that selecting a word inline and clicking the code button no longer wraps it in single backticks; it wraps it in triple backticks and adds newlines before and after the selected word.

Users can delete the newlines to get the intended result (which is to say, you can write ````triple backticks```` on a single line and it DTRT) but I don’t think it’s correct to add newlines to selected text.

This is a bug, right? (Or is it by design for some reason?)

---

_[View the full topic](https://meta.discourse.org/t/inline-code-blocks-in-code-fence-mode/48833)._
