Skip to main content
edited tags
Link
Ivar
  • 6.7k
  • 2
  • 24
  • 25
Active reading.
Source Link
Peter Mortensen
  • 31.6k
  • 4
  • 22
  • 14

Make Should we make the {} button add ``` instead of 4four spaces?

I didn't know that the three backticks code fence feature was implemented utiluntil I asked this question.

This is a great new feature! I think the code block button in the editor (the {} button) should add three backticks as well, instead of the old four leading spaces syntax.

What I mean is this:

I have the text:

some code
some code line two

When I select that in the editor and press the code block button (or CtrlCtrl/CmdCmd + KK), this would happen:

```
some code
some code line two
```

instead of this:

    some code
    some code line two

Make the {} button add ``` instead of 4 spaces?

I didn't know that the three backticks code fence feature was implemented util I asked this question.

This is a great new feature! I think the code block button in the editor (the {} button) should add three backticks as well, instead of the old four leading spaces syntax.

What I mean is this:

I have the text:

some code
some code line two

When I select that in the editor and press the code block button (or Ctrl/Cmd + K), this would happen:

```
some code
some code line two
```

instead of this:

    some code
    some code line two

Should we make the {} button add ``` instead of four spaces?

I didn't know that the three backticks code fence feature was implemented until I asked this question.

This is a great new feature! I think the code block button in the editor (the {} button) should add three backticks as well, instead of the old four leading spaces syntax.

What I mean is this:

I have the text:

some code
some code line two

When I select that in the editor and press the code block button (or Ctrl/Cmd + K), this would happen:

```
some code
some code line two
```

instead of this:

    some code
    some code line two
Source Link
Sweeper
  • 266.3k
  • 3
  • 28
  • 55

Make the {} button add ``` instead of 4 spaces?

I didn't know that the three backticks code fence feature was implemented util I asked this question.

This is a great new feature! I think the code block button in the editor (the {} button) should add three backticks as well, instead of the old four leading spaces syntax.

What I mean is this:

I have the text:

some code
some code line two

When I select that in the editor and press the code block button (or Ctrl/Cmd + K), this would happen:

```
some code
some code line two
```

instead of this:

    some code
    some code line two