305

Working with indentation as formatting is a very annoying experience and it's clear that new users have a problem with it. Also, many users seem to be in support for triple-backticks.

There are many reasons for it to be the default.

You cannot hint the language with indented code blocks as easily as with triple-backticks.

There are questions that require code blocks in multiple languages, which is very easy and straight-forward with triple-backticks, by adding the language just after the ticks e.g. ```rust or ```python.

pub fn main() {}
def main(): pass

With indented code blocks you have to rely on somewhat obscure and deprecated HTML inlining, e.g. <!-- language: rust --> or <!-- language: python -->.

You cannot easily put two code blocks after each other

If you have one indented code block directly followed by another code block, they'll be merged into one. This makes the example I showed above confusing (along with wrong highlighting):

pub fn main() {}

def main(): pass
If you indent your code properly but accidentally forget an empty line in-between the text and the code, it'll not work.

When you get told that the code needs to be indented in order to be formatted as a code block, it can be a bit annoying and confusing when there are these additional rules.

This is text. This is indented text one line below.

This is text.

This is indented text two lines below.
It's slightly more annoying to insert code in an already existing code block.

Since I can't insert with tab, I'll have to insert with 4 spaces. If the code is indented, then I have to spam 4 extra spaces for every line I want to insert. And if I want to break up the code in two lines I'll have to make sure to indent the other line also to not mess up the formatting.

Backticks are what is used in the comments.

This will give more consistency and hint people on how to format code in the comment section.


Overall, the triple-backtick option is more convenient and easier for many people, and I think that it would be beneficial for many new users to properly format their code and for editors to fix bad formatting. Therefore, it should be the preferred default when using the GUI button or using the hotkey to create code sample.

40
  • 14
    Cross site duplicate stating that indent is [status-bydesign]
    – Thom A
    Commented Dec 19, 2021 at 15:31
  • 22
    "You cannot hint the language with indented code blocks like you can with triple-backtick." - you can, but apparently it's deprecated now and may be removed. You have to put a <!-- language: lang-whatever --> comment before the code block. See the footnote in meta.stackexchange.com/questions/184108/… Commented Dec 19, 2021 at 15:45
  • 11
    "Are the instructions for code formatting not clear enough? " I think it's that that users don't take the effort to format... Not that they don't make the effort to put their code in code blocks/fences. I frequently see questions that are full of huge blocks of text and single lines of code that are 400 characters long. Unfortunately switching from indent to fences by default isn't going to fix the root problem.
    – Thom A
    Commented Dec 19, 2021 at 15:53
  • 8
    @TedKleinBergman: No, you're thinking of the very similar, not deprecated <!-- language-all: lang-whatever --> syntax. The form without the -all only applies to one code block. Commented Dec 19, 2021 at 16:23
  • 4
    So, basically, we should just remove indentation formatting altogether, because (as far as I can tell) it offers no benefits over using triple-backticks, and in fact is less intuitive. On the downside, if we remove it, then all the posts that already have indentation formatting are going to look much worse. So why did we have indentation formatting at all? Especially since the Stack Overflow post-editing textboxes don't have an indent feature, requiring the user to either indent their code in an editor or manually insert 4 spaces on each... individual... line... Commented Dec 19, 2021 at 16:38
  • 11
    The one and only good thing I can think of for having that button indent a block of code is for the not-so-common case of putting a code block inside a bulleted/numbered list. I find the easiest way to format it properly (the code to be aligned with the indentation of the bullet) is to first wrap the code with backticks and then mark the code including the backticks and press the code-format button to indent the whole thing to be under the list...
    – Tomerikoo
    Commented Dec 19, 2021 at 16:47
  • 3
    @SylvesterKruin There already is ctrl+k...
    – Tomerikoo
    Commented Dec 19, 2021 at 16:54
  • 21
    Personally, id much rather a feature to ban users who don't format their code, period.
    – TheGeneral
    Commented Dec 20, 2021 at 2:12
  • 4
    I still remember coming to SO from posting on forums and other places years and years ago, I found the "indent for code" thing very confusing. Even after I got used to it, I found it inconvenient, and hard to read. Using triple backticks would not suddenly make pasting code painless (posters would still have to remove indents that were present due to class/namespace/etc. blocks in e.g., C#) but at least I can clearly see where the code starts and ends with triple backticks. SO actually taught me markdown, funny enough.
    – jrh
    Commented Dec 20, 2021 at 3:13
  • 9
    I love how this kind of question needs to be asked every N months and yet nobody on the dev team seems to care. Not a single feature in the text current editor that makes it even slightly decent for writing code: no auto-indentation, tab makes you select the next item in the page, no indent/dedent functionality... it's hell. When I edit posts for other people, I have to copy/paste the code into VSCode, edit it and then copy-paste it back. You know how many edits I would have been willing to make if it weren't for the awful UX of the editor? Double the amount I did, probably. Commented Dec 20, 2021 at 4:58
  • 15
    I'd rather keep the {} UI button as an indent/unindent, as that's a much more involved operation, and much more work to do by hand, when needed. Adding code fences using backticks is trivial to do by hand. All you have to do is hit the ` key six times and put each of the two sets of three on separate lines. Why expend a UI button to do something that's so trivial to do by hand?
    – Makyen Mod
    Commented Dec 20, 2021 at 5:46
  • 24
    @Makyen because a lot of new users are not familiar with Markdown (and backticks are not trivial at all to do on some keyboards). It’s also "trivial" to put text in bold or italics, and still we have these buttons. Is there a use-case for indentation outside of formatting code? If not, there’s no point of keeping a button for that if we encourage the use of backticks.
    – bfontaine
    Commented Dec 20, 2021 at 10:21
  • 11
    I would like for them to add indent/unindent buttons to the editor that let us just add/remove 4 spaces from a selection an unlimited number of times.
    – TylerH
    Commented Dec 20, 2021 at 14:46
  • 5
    @MarcoBonelli I'm with you. For a site that started as a programmers resource, support for programming is surprisingly shabby. Commented Dec 20, 2021 at 15:25
  • 5
    It has become a common formatting feature in many communication tools, including Slack and even Teams, to use markdown-style triple indentation, and it would be a great improvement to support it on SO. Commented Dec 20, 2021 at 16:00

7 Answers 7

134

Absolutely. Fenced code blocks are a dramatic UX improvement.

  • The extra indentation makes editing an existing block much harder.
  • Fenced blocks make the process of copy/pasting code into the question trivial. You don't need to edit the code after pasting it. It is common to paste from an actual compilable/executable source file.
  • Indentation is also used with lists (bullet and numbered), making it more confusing how to properly indent a block inside them. Fenced blocks provide a separate syntax, simplifying the markup for indenting a block inside a list.

I'm sure I could come up with more, but those are issues I encountered all the time when I was active. Indented code blocks are annoying.

19
  • 5
    "Fenced code blocks are a dramatic UX improvement." - Be prepared that not everyone shares this sentiment. Commented Dec 20, 2021 at 9:52
  • 9
    @IInspectable I can only see one commenter there suggesting that there are a few edge cases where indenting is useful, namely when discussing Markdown itself. Most of the discussion is about how useful it is to edit existing posts to switch styles, which isn't relevant here.
    – IMSoP
    Commented Dec 20, 2021 at 10:56
  • 1
    @ims The title of the question is "What is the preferred method for formatting code?". I was answering that question (not whether the alleged mass editing that were to ensue, inevitably, were desirable). That answer has just about as many upvotes as it has downvotes. Commented Dec 20, 2021 at 11:54
  • 2
    @IInspectable Ah, I didn't look at the votes, only the comments, so I didn't understand what you were linking to.
    – IMSoP
    Commented Dec 20, 2021 at 12:04
  • 3
    @IInspectable That answer is not only about fenced code blocks, but also two other issues: changing that in edits, and how to fence blocks and those might have caused the downvote. As noted one major problem with backtick is that it is complicated to type on many keyboards, which makes it hard to do it manually - but that is not an issue for the code-block button. Commented Dec 20, 2021 at 12:25
  • 5
    @IInspectable From the comments it seems clear that at least some (if not all!) of the downvotes are from people who don’t agree that editing a post solely to change the code fence style is appropriate. The downvotes say nothing about whether people actually prefer indentation, and it’s highly unlikely that a significant number do. Commented Dec 20, 2021 at 16:16
  • 1
    @kon Voting is anonymous. It's opaque to me how you derive your conclusions given that there is no data available. This reads like opinion delivered as if it was a fact. Commented Dec 20, 2021 at 16:55
  • 1
    The biggest problem with fenced code on pasting is that most of us are pasting from heavily indented sources. I personally fix my indenting in the IDE before I paste into SO but its clear that a lot of people do not do this, so fencing makes it even more important that we provide keyboard or toolbar support for indenting blocks. Commented Dec 21, 2021 at 1:17
  • 2
    BTW, you can also use triple tilde ~~~ for code fences, which may be easier than triple backticks on some keyboards. See meta.stackoverflow.com/a/251362/4014959
    – PM 2Ring
    Commented Dec 21, 2021 at 3:35
  • 1
    @IInspectable If we can't glean any meaning from voting and the context surrounding it, then neither can you. You cannot use downvotes on your answer to defend the notion that some users prefer indented blocks and simultaneously dismiss Konrad's analysis of their meaning based on the context. That would be blatant hypocrisy.
    – jpmc26
    Commented Dec 21, 2021 at 4:54
  • 1
    @jpm Votes do carry meaning, obviously. There's a difference between using that raw data, and guessing at how that data came about. I used the raw data, when Konrad was playing the speculation game. Can you see the difference? Commented Dec 21, 2021 at 6:57
  • 4
    @IInspectable Raw data would be, "There are 13 downvotes on this answer." Claiming those downvotes represent a preference for indented code blocks is "guessing at how that data came about," or more succinctly, an interpretation. Can you see the difference? Konrad was examining additional data that suggested a different interpretation (namely, what objections were actually raised in comments by potential downvoters), not speculating.
    – jpmc26
    Commented Dec 21, 2021 at 7:30
  • @jpm I was never claiming any of that. Read my comment again, and stick to what I did say. Not what you would have liked me to have claimed just so that you can prove me wrong. Commented Dec 21, 2021 at 8:07
  • 2
    @sta The normal indentation rules for nesting in lists apply. Commented Dec 21, 2021 at 10:13
  • 1
    @stackprotector You leave a blank line after the list item (the line starting with * or 1.) and then indent the entire block (including the back-ticks themselves) by 4 spaces. (You can also have multiple nested paragraphs under the same list item. You just need a blank line and indentation for each one.)
    – jpmc26
    Commented Dec 21, 2021 at 16:12
60

I agree.

One of the biggest annoyances I face is reviewing edits from new users who have added code fences to indented code without removing the first layer of indentation.

Code like this:

const myVar = "Hello"
const message = myVar + " friends!"
alert(message)

Becomes:

    const myVar = "Hello"
    const message = myVar + " friends!"
    alert(message)

Because Tab and Shift + Tab don't work in the editor without userscripts, a large number of users don't take the time to fix indentation in their edits.

7
  • 40
    Note for any aspiring editors having this problem: the correct solution is to select the code and click the code-format button to strip the existing indent, then add the triple backticks.
    – Ryan M Mod
    Commented Dec 20, 2021 at 2:49
  • 3
    @RyanM: that's the only thing I'd be worried about with a change to the editor for the code-formatting button (and ctrl-k shortcut) to use fences: whether that would leave you without a way to un-indent a block like you might want to in an old post that either shouldn't have used code-formatting at all, or has janky indentation inside the block, or that you're converting to fenced. Commented Dec 20, 2021 at 13:28
  • @RyanM but note one should make sure the selection highlight runs all the way to the start of every line; making the selection highlight stop just to the left of the first word in the code makes it go haywire
    – Caius Jard
    Commented Dec 20, 2021 at 22:04
  • 1
    @Joundill honestly, I'm just glad when people format with code at all; I couldn't care less how indented it is
    – Caius Jard
    Commented Dec 20, 2021 at 22:04
  • 9
    @CaiusJard That's reasonable, for most languages. However, in Python, it's a serious issue because Python uses indentation syntactically to mark block structure (instead of braces). So when an OP posts badly formatted code it can be hard to know if it's merely a formatting error that arose in posting the code, or if it's an actual error in their original source code.
    – PM 2Ring
    Commented Dec 21, 2021 at 3:48
  • 3
    For a while my edits consisted mainly of pasting the code into courses.cs.washington.edu/courses/cse142/20su/indent.html, then pasting it back
    – aheze
    Commented Dec 21, 2021 at 19:46
  • I agree too.⠀⠀⠀ Commented Dec 21, 2021 at 22:32
30

I find the original code indentation, though buggy, very useful in cleaning up code that was pasted from inside multiple indentations. If the code button was to be changed to use backticks, then I would suggest that increase and decrease indent buttons should be added to the toolbar.

Because the default indentation button would remove the indentation for already indented code, I found it very helpful as a button to decrease indentation in general. In fact I find my self at a block of text/code deliberately manipulating the first line, knowing that the indentation will be applied based on that first line. So when editing code/script answers on my phone I could quickly build the indentation that I was expecting.

12
  • 7
    Yes, also do we really need a button for triple backtick indentation? It is so easy to to type, that it is more work fist to select the entire block, and the to use the mouse to press the button.
    – user000001
    Commented Dec 20, 2021 at 8:50
  • 18
    @user000001 backticks are not so easy to type on some keyboards, especially if you’re not familiar with them. The first point of a button is not to save you time, but to let you use formatting without being familiar with Markdown.
    – bfontaine
    Commented Dec 20, 2021 at 10:28
  • 3
    Better than adding yet more buttons: handle the Tab key correctly (= as expected), especially when the user has highlighted a block of text. (I know Cmd+k already does that and I use it frequently but it’s at best a sub-par replacement.) Commented Dec 20, 2021 at 16:02
  • @bfontaine on a dekstop PC you can use autohotkey to replace a character that is easy to type. On my iPhone i've set ttt to be a shortcut for ``` because it's heck of a lot easier to type and doesn't occur naturally
    – Caius Jard
    Commented Dec 20, 2021 at 22:06
  • An indent button would be useful regardless of what behavior the code block button implements. Indentation is useful in a wide variety of cases, including list mark up and within code blocks. So I'd say this use case is just a justification for indentation functionality, rather than a reason to have the code button perform indents. Indeed, the button currently does the wrong thing in cases where indentation is used for something else.
    – jpmc26
    Commented Dec 21, 2021 at 5:00
  • 2
    @KonradRudolph Tab already has a defined behavior in browsers (moving focus between elements). I strongly object to overriding browser keyboard shortcuts. It leads to a lot of trouble for heavy keyboard users like myself.
    – jpmc26
    Commented Dec 21, 2021 at 16:26
  • 3
    @jpmc26 I would generally agree — except in editors (which this is). Because Tab already has a defined behaviour in editors, and I strongly object to overriding editor keyboard shortcuts (by the browser, as it were). It leads to a lot of trouble for heavy keyboard users like myself (apologies for copying your comment almost verbatim, but I couldn’t have made the argument better myself). Commented Dec 21, 2021 at 16:49
  • @KonradRudolph In browsers, Tab should move from a text box to the next item in the form, often the submission button.
    – jpmc26
    Commented Dec 21, 2021 at 16:51
  • 1
    @jpmc26 As I said: yes (and you don’t need to convince me, I extensively use the keyboard to navigate). Except when the focus is on editors because Tab has a different, overriding behaviour in editors. And the focus switching is a trivially solvable issue: just make Esc leave the editor control so that the next Tab press jumps to the next control (this is the expected behaviour for me anyway, and it’s intensely frustrating that browsers don’t seem to behave this way by default). Commented Dec 21, 2021 at 16:53
  • 1
    @KonradRudolph Whether you find the defaults to be less than ideal is immaterial. The fact is they are there and users are used to them and have developed expectations and usage patterns surrounding them. Overriding them is more of a pain in the butt than dealing with them, because then not only do you need to adjust your usage around the less than ideal parts of browser, but also you have to change your usage for the inconsistent behavior of every single site. It's not worth it.
    – jpmc26
    Commented Dec 22, 2021 at 21:03
  • @jpmc26 There are two conflicting defaults here. You seem to place the defaults of the browser over those of an editor, but I don’t accept that premise. And, given that there is a trivially simple fix to make both defaults work together in harmony, I find your premise entirely backwards. Maybe your disagreeing means just that I haven’t explained my suggestion clearly: I don’t suggest breaking tab-between-controls. Clearly, this must continue to work. I am just saying that, if the editor is focused, tab-to-next-control requires pressing Esc first. This is already an established UX pattern. Commented Dec 23, 2021 at 9:14
  • 3
    It would be much better to have explicit indent and dedent buttons, yes. I would like to be able to indent a selection further that is already indented on every line, and dedent a selection that includes lines that are not indented. You know, like how decent text editors work. Commented Jun 1, 2022 at 4:05
15

To give something that's been mentioned in comments its own answer to vote on, how about:

  • Change the "Code Sample" button to use backtick-style
  • Add "Increase Indent" and "Decrease Indent" buttons
  • Make sure the order of buttons makes sense - probably "Code Sample", "JS/HTML/CSS Snippet", "Decrease Indent", "Increase Indent" (for some reason, "Image" currently comes in between Sample and Snippet)
10

I agree 100%!

Using indentation for code formatting is very confusing, especially in languages such as Python where indentation is used for control structures. I have seen many posts where the formatting was terrible because the user had pasted some code, half of which was indented and half of which wasn't.
That type of issue does not occur with triple backticks. I think limiting code formatting to triple backticks only would be much more intuitive for everyone vs. indentation.

Indentation is a very fragile and annoying method of formatting code.

Please get the keys right!

Tab and Shift+Tab should indent/deindent instead of jumping out of the editor. This has caused me no end of grief. I know this is possible because I've seen it in editors like ace.js.
Ctrl+K should still format a block as code, but now using triple backticks.

17
  • 6
    As I commented on another post, the tab key is used for navigation in web browser, changing that breaks accessibility.
    – DBS
    Commented Dec 21, 2021 at 13:50
  • 11
    This site exists for the purpose of posting (and hopefully formatting) code. The benefits of making the Tab key work for indentation in the editor far outweigh the sacrifice to accessibility. Commented Dec 21, 2021 at 15:20
  • 6
    I agree with your first sentence, but your second is effectively saying that your ease of use outweighs other people's ease of use? It's a minor inconvenience for you to use a different key combo to indent, where as changing the tab functionality can make the page completely non functional for users with certain methods of interaction (Try posting a question without using a mouse and not being able to tab out of the input area)
    – DBS
    Commented Dec 21, 2021 at 15:26
  • 4
    The Tab key would only need to function differently when the focus is in the editor. I do not believe that people should change their way of interacting with the site just because I prefer it a different way. But I do honestly think there would be more people who find the suggested change beneficial than people who are thrown off by it. Commented Dec 21, 2021 at 15:37
  • 1
    The issue is that tab is the main way that a keyboard-only (or other accessibility input device) would leave the editor, so by changing it we'd effectively trap users in the input area, making everything after it inaccessible.
    – DBS
    Commented Dec 21, 2021 at 15:42
  • 5
    @DBS The issue is that tab is the main way that developers/writers indent content. Changing it would effectively cause the editor to not function as expected and frustrate users, making the entire experience awful.
    – Kevin B
    Commented Dec 21, 2021 at 15:47
  • @DBS I understand. On the Ask Question page, a user has to hit Tab twice before getting to the editor(once to focus on the title box, once more for the editor). It might make sense to enable the special Tab functionality in the editor on a case by case basis, like if the user has not already hit Tab twice to get to the editor. This means they are capable and willing to use the mouse, and consequently that they would be able to escape the editor focus without having to use the Tab key. Commented Dec 21, 2021 at 15:47
  • 1
    If they could detect keyboard navigation and disable tab indentation that would be great (and personally, I'd love to be able to tab-indent) I just don't think that's particularly achievable in a reliable way. If only the tab key didn't have two different (yet overlapping) uses...
    – DBS
    Commented Dec 21, 2021 at 16:21
  • 2
    I'd prefer to see standard code blocks get the same treatment as code snippets. Edit the code block, sending you to a code editor, (or even just make all code blocks snippets, improve switching to the snippet editor, and have run be a toggle that's off by default)
    – Kevin B
    Commented Dec 21, 2021 at 16:28
  • @KevinB Now that's an idea! I forgot about code snippets because I never use them since they only work for web code, but adding support for more languages would definitely make sense! Commented Dec 21, 2021 at 16:33
  • 1
    yeah, basing "run" on the language chosen wouldn't be a bad idea either. better'n a toggle
    – Kevin B
    Commented Dec 21, 2021 at 16:38
  • 4
    @NoahBroyles Different behaviour on a case-by-case basis sounds like a nightmare, to be honest. It’s much simpler to make the Tab key inside the editor have a consistent behaviour (in-/dedent) and only switch to a different control after the user pressed Esc to leave edit mode. Commented Dec 21, 2021 at 16:55
  • 2
    Just to be really clear for the people making false equivalences: some people can not use a mouse, so are entirely reliant on keyboard navigation. Breaking the behaviour of the tab key for those people is not a simple inconvenience to be weighed up against the rest of us memorising Ctrl-K. The idea of hitting Escape to exit edit mode makes a lot of sense if combined with the idea of combining with a pop-up code editor (like for Snippets), where Escape is a natural navigation key. Otherwise, navigating will be like exiting vim.
    – IMSoP
    Commented Dec 22, 2021 at 8:45
  • @IMSoP Frankly, invoking the “exiting vim” trope is a bad-faith argument. Firstly, because it’s a meme, not an argument. And secondly, because pressing Esc in an editor control to make Tab switch to the next control is an established UX pattern, and absolutely not limited to Vim (in fact, Vim doesn’t use this pattern). Commented Dec 23, 2021 at 9:22
  • @KomradRudolph True, it is a bit of a tired joke, but my point wasn't about Vim's use of Escape in particular, it was about not knowing the special keys for a system - I actually struggle to exit Emacs. So: "pressing Esc in an editor control .. is an established UX pattern" - is it? As I say, if the control is activated as a pop-up of some sort, then escape to dismiss the pop-up feels natural to me, but I'm not sure hitting "Escape then Tab" to move on from a normal form field would occur to me. (I'm assuming Escape followed by a letter would just type that letter into the text area?)
    – IMSoP
    Commented Dec 23, 2021 at 11:00
7

I'm not a UI/UX person so this might actually be a terrible idea, but this is my suggestion:

If/when the code-block button is changed to insert backticks instead of indents, please keep the ctrl+k shortcut to indent the highlighted block.

As I stated in a comment above, the main reason I see for auto-indents being useful is when adding code to a bulleted list. i.e. this:

1. An example
```
some code
```

Will be rendered as:

  1. An example
some code

But in order for the code to be under the list item it needs to be indented another level. I find it most convenient to use backticks and then highlight the code together with the backticks and use the indent button. It would become tedious if that button didn't indent anymore but it would be great if I could at least press ctrl+k to easily achieve:

1. An example
    ```
    some code
    ```

which will give:

  1. An example
    some code
    
7
  • 3
    I think the suggestions elsewhere of having separate buttons for "increase indent" and "decrease indent" would cover this, assuming anyone knew that was the necessary magic trick. Or of course we could just use a markup language that's less terrible than Markdown 😝
    – IMSoP
    Commented Dec 20, 2021 at 12:06
  • 14
    I'd rather have Tab and Shift+Tab do indent/unindent. Commented Dec 20, 2021 at 15:56
  • 3
    @JohnKugelman I like those settings in an IDE, but repurposing the tab key would cause all sorts of accessibility issues on a webpage.
    – DBS
    Commented Dec 20, 2021 at 16:35
  • 1
    Fair point, @DBS. OTOH, I wouldn't mind a dollar for every time someone accidentally tried to indent code in the SO editor using the tab key. ;)
    – PM 2Ring
    Commented Dec 21, 2021 at 3:24
  • 1
    Apart from the accessibility issue raised above, utilizing the Tab key actually requires the dev team to implement new functionality. What I suggest is literally "do nothing" (leave the ctrl+k as it is now) which realistically is a lot more likely to happen...
    – Tomerikoo
    Commented Dec 21, 2021 at 14:16
  • @IMSoP "Or of course we could just use a markup language that's less terrible than Markdown" - any suggestions? Commented Jun 1, 2022 at 4:07
  • @KarlKnechtel I've heard there's this thing called "HTML", where instead of random punctuation and carefully counted whitespace, everything is formatted with a consistent system of "tags", which can be nested in all sorts of different ways. I don't know if it will ever catch on, though...
    – IMSoP
    Commented Jun 1, 2022 at 10:34
5

The new editor – i.e. the one that I am typing this very answer in – already does that. The old editor is not going to be changed, since that would only delay development of the new editor.

5
  • 11
    But the new editor hasn't been added to the main site yet. It's only on MSO and MSE which isn't very great. Commented Dec 19, 2021 at 22:03
  • 7
    And both editors screw up quoting & unquoting code blocks.
    – philipxy
    Commented Dec 20, 2021 at 1:12
  • 17
    While the "new" editor does do this, it has substantial other issues which makes it, at best, problematic to use.
    – Makyen Mod
    Commented Dec 20, 2021 at 5:55
  • 3
    Unfortunately the new editor only adds backtick fences in Markdown mode. when using the button in WYSIWYG mode and then changing to Markdown the code is displayed as indented instead. (It also sometimes adds redundant empty lines around the code but that’s a separate issue …) Commented Dec 20, 2021 at 16:11
  • 8
    It is my informed opinion that WISYWIG is awful for formatting. Always. If a user can't get the editor to insert markup to do what they want, they won't be able to manipulate the formatting with WISYWIG very effectively either. I'd rather trash the new one, frankly.
    – jpmc26
    Commented Dec 21, 2021 at 5:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .