I'm not sure what makes the blockquote formatting button so attractive to new users but they sure do love to use it for code.
The problem is, an editor trying to fix it by selecting the problem block of text and hitting the blockquote button to remove the quotes also destroys the newline formatting.
For example, say we start with this (a common occurrence in my experience)
> <!doctype html>
> <html lang="en">
> <head>
> <title>My HTML page</title>
> </head>
> <body>
> <h1>My HTML page</h1>
> </body>
> </html>
Selecting and hitting the button results in this
<!doctype html> <html lang="en"> <head>
<title>My HTML page</title> </head> <body>
<h1>My HTML page</h1> </body> </html>
Is there any chance we could have the button simply toggle the leading >
characters on each line and nothing else?
As an aside, I found a similar thing happens when adding blockquotes. Take the same sample above
<!doctype html>
<html lang="en">
<head>
<title>My HTML page</title>
</head>
<body>
<h1>My HTML page</h1>
</body>
</html>
Selecting it and clicking the blockquote button has a similar effect
> <!doctype html> <html lang="en"> <head>
> <title>My HTML page</title> </head> <body>
> <h1>My HTML page</h1> </body> </html>