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

Continuing the discussion from Filebeat -> Logstash "write: broken pipe":

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?

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

Example

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.