# Preformatted text button doesn't (quite) work properly)

**URL:** <https://discuss.elastic.co/t/preformatted-text-button-doesnt-quite-work-properly/45174>\
**Category:** Meta Elastic\
**Created:** [March 23, 2016, 1:44am UTC](https://discuss.elastic.co/t/preformatted-text-button-doesnt-quite-work-properly/45174 "2016-03-23T01:44:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregoryo](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@gregoryo](https://discuss.elastic.co/u/gregoryo)\
**Post date:** [March 23, 2016, 1:44am UTC](https://discuss.elastic.co/t/preformatted-text-button-doesnt-quite-work-properly/45174/1 "2016-03-23T01:44:56Z")

</div>

Continuing the discussion from [Filebeat -\> Logstash "write: broken pipe"](https://discuss.elastic.co/t/filebeat-logstash-write-broken-pipe/45077/5):

How do I do it? I've tried the buttons on the toolbar in the editor, and found one post which says to press Ctrl-K but I assume that's outdated because that's the keyboard shortcut for inserting a Link.

Is it staring me in the face, or hidden somewhere?

---

<div class="post-metadata">

**Author:** ![dedemorton](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dedemorton/32/84409_2.png) [@dedemorton](https://discuss.elastic.co/u/dedemorton)\
**Post date:** [March 23, 2016, 1:58am UTC](https://discuss.elastic.co/t/preformatted-text-button-doesnt-quite-work-properly/45174/2 "2016-03-23T01:58:33Z")

</div>

Put a line of 5 backticks before and after your code sample.

```auto
Example

```

---

<div class="post-metadata">

**Author:** ![gregoryo](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@gregoryo](https://discuss.elastic.co/u/gregoryo)\
**Post date:** [March 31, 2016, 7:58am UTC](https://discuss.elastic.co/t/preformatted-text-button-doesnt-quite-work-properly/45174/3 "2016-03-31T07:58:30Z")

</div>

What I really wanted was for blocks of code. To achieve it, indent a block of code with four spaces, and ensure a blank line before the start of it:

```
like this
second line

```

The button "\</\> Preformatted text (Ctrl-Shift-C)" in the toolbar does the indenting for you, but it doesn't ensure a blank line before the start. A bug, I reckon.

Greg.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:46pm UTC](https://discuss.elastic.co/t/preformatted-text-button-doesnt-quite-work-properly/45174/4 "2017-07-06T13:46:54Z")

</div>


