Skip to main content
Commonmark migration
Source Link

It seems that some people don't understand how the "make code sample" button {} works.

I encounter posts like this all the time:


Incorrect code indent screenshot


The problem appears to be that they first click {}, and then paste in their code, after the initial 4 spaces have been inserted:

enter image description here

 

enter image description here

When this happens, only the first line is indented, causing the behavior above. This is the only way I can figure out for this to happen.

Of course, selecting all of the code, then clicking {} yields the correct result, even adding the line after the closing }.

I know you can't fix stupid, but is there anything that can be done here? Does anyone else see this often (1-2 edits per evening, I'd say)?

It seems that some people don't understand how the "make code sample" button {} works.

I encounter posts like this all the time:


Incorrect code indent screenshot


The problem appears to be that they first click {}, and then paste in their code, after the initial 4 spaces have been inserted:

enter image description here

 

enter image description here

When this happens, only the first line is indented, causing the behavior above. This is the only way I can figure out for this to happen.

Of course, selecting all of the code, then clicking {} yields the correct result, even adding the line after the closing }.

I know you can't fix stupid, but is there anything that can be done here? Does anyone else see this often (1-2 edits per evening, I'd say)?

It seems that some people don't understand how the "make code sample" button {} works.

I encounter posts like this all the time:


Incorrect code indent screenshot


The problem appears to be that they first click {}, and then paste in their code, after the initial 4 spaces have been inserted:

enter image description here

enter image description here

When this happens, only the first line is indented, causing the behavior above. This is the only way I can figure out for this to happen.

Of course, selecting all of the code, then clicking {} yields the correct result, even adding the line after the closing }.

I know you can't fix stupid, but is there anything that can be done here? Does anyone else see this often (1-2 edits per evening, I'd say)?

edited body
Source Link
TylerH
  • 21.2k
  • 22
  • 229
  • 328

It seems that some people don't understand how the "make code sample" button {} works.

I encounter posts like this all the time:


Incorrect code indent screenshot


The problem appears to be that they first click {}, and then paste in their code, after the initial 4 spaces have been inserted:

enter image description here

enter image description here

When this happens, only the first line is indented, causing the behavior above. This is the only way I can figure out thatfor this happensto happen.

Of course, selecting all of the code, then clicking {} yields the correct result, even adding the line after the closing }.

I know you can't fix stupid, but is there anything that can be done here? Does anyone else see this often? (1-2 edits per evening, I'd say.)?

It seems that some people don't understand how the "make code sample" button {} works.

I encounter posts like this all the time:


Incorrect code indent screenshot


The problem appears to be that they first click {}, and then paste in their code, after the initial 4 spaces have been inserted:

enter image description here

enter image description here

When this happens, only the first line is indented, causing the behavior above. This is the only way I can figure out that this happens.

Of course, selecting all of the code, then clicking {} yields the correct result, even adding the line after the closing }.

I know you can't fix stupid, but is there anything that can be done here? Does anyone else see this often? (1-2 edits per evening, I'd say.)

It seems that some people don't understand how the "make code sample" button {} works.

I encounter posts like this all the time:


Incorrect code indent screenshot


The problem appears to be that they first click {}, and then paste in their code, after the initial 4 spaces have been inserted:

enter image description here

enter image description here

When this happens, only the first line is indented, causing the behavior above. This is the only way I can figure out for this to happen.

Of course, selecting all of the code, then clicking {} yields the correct result, even adding the line after the closing }.

I know you can't fix stupid, but is there anything that can be done here? Does anyone else see this often (1-2 edits per evening, I'd say)?

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

It seems that some people don't understand how the "make code sample" button {} works.

I encounter posts like thisthis all the time:


Incorrect code indent screenshot


The problem appears to be that they first click {}, and then paste in their code, after the initial 4 spaces have been inserted:

enter image description here

enter image description here

When this happens, only the first line is indented, causing the behavior above. This is the only way I can figure out that this happens.

Of course, selecting all of the code, then clicking {} yields the correct result, even adding the line after the closing }.

I know you can't fix stupid, but is there anything that can be done here? Does anyone else see this often? (1-2 edits per evening, I'd say.)

It seems that some people don't understand how the "make code sample" button {} works.

I encounter posts like this all the time:


Incorrect code indent screenshot


The problem appears to be that they first click {}, and then paste in their code, after the initial 4 spaces have been inserted:

enter image description here

enter image description here

When this happens, only the first line is indented, causing the behavior above. This is the only way I can figure out that this happens.

Of course, selecting all of the code, then clicking {} yields the correct result, even adding the line after the closing }.

I know you can't fix stupid, but is there anything that can be done here? Does anyone else see this often? (1-2 edits per evening, I'd say.)

It seems that some people don't understand how the "make code sample" button {} works.

I encounter posts like this all the time:


Incorrect code indent screenshot


The problem appears to be that they first click {}, and then paste in their code, after the initial 4 spaces have been inserted:

enter image description here

enter image description here

When this happens, only the first line is indented, causing the behavior above. This is the only way I can figure out that this happens.

Of course, selecting all of the code, then clicking {} yields the correct result, even adding the line after the closing }.

I know you can't fix stupid, but is there anything that can be done here? Does anyone else see this often? (1-2 edits per evening, I'd say.)

deleted 45 characters in body
Source Link
Jonathon Reinhart
  • 137.1k
  • 1
  • 23
  • 22
Loading
quote background and tooltip for screen shots
Source Link
gnat
  • 6.2k
  • 10
  • 109
  • 177
Loading
edited title
Link
Jonathon Reinhart
  • 137.1k
  • 1
  • 23
  • 22
Loading
added 97 characters in body
Source Link
Jonathon Reinhart
  • 137.1k
  • 1
  • 23
  • 22
Loading
Source Link
Jonathon Reinhart
  • 137.1k
  • 1
  • 23
  • 22
Loading