# 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:** 10

<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 23, 2016, 3:18am UTC](https://meta.discourse.org/t/inline-code-blocks-in-code-fence-mode/48833/10 "2016-08-23T03:18:44Z")

</div>

If your fix did anything, I don’t see it!

Let me clarify how I think the code `</>` button works (should work) in 4SI (4-space indent) mode and in CF (code fences) mode.

In 4SI mode, the `</>` button has two very different behaviors, one where you select just part of a line (Example 1), and another different behavior where you select multiple lines (Example 2).

**Example 1 (single-line)**  
Input: `one two three` select the word “two”  
4SI Output: `one `two` three`

**Example 2 (multi-line)**  
Input: select all three lines:

```plaintext
multi
line
text

```

4SI Output:

```plaintext
    multi
    line
    text

```

4SI works as expected in both examples. CF mode works as expected in Example 2 (multi-line); CF mode does not work correctly in Example 1 (single-line) on [try.discourse.org](http://try.discourse.org) right now.

Input: `one two three` select the word “two”  
4SI Output: `one `two` three`  
CF Expected Output: `one `two` three` (same as 4SI)  
CF Actual Output:

````
one
```
two
```
three

````

The only difference between 4SI and CF is (should be) how they behave in Example 2 (multi-line). They should behave exactly the same in Example 1 (single-line).

---

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