Posting code on stackoverflow

Rich Shepard rshepard at appl-ecosys.com
Sat Jun 5 22:02:13 EDT 2021


On Sun, 6 Jun 2021, Roel Schroeven wrote:

> There are several ways to format code on StackOverflow, see
> https://meta.stackoverflow.com/questions/251361/how-do-i-format-my-code-blocks

Roel,

Thanks very much for the URL.

> What I do most of the time is indent the code by 4 spaces and make sure
> there are blank lines before and after the code block.

Just now I noticed a link 'code' along the top of the window. Clicking on
that I read that a code block can be identified as such by surrounding it
with sets of three backticks (```). That worked.

Regards,

Rich


More information about the Python-list mailing list