Re: Posting code on stackoverflow

2021-06-06 Thread Rich Shepard
On Sat, 5 Jun 2021, Terry Reedy wrote: Last time I tried *before*, it did not work. paste, reselect (a nuisance) and click does. Terry, I had tried that and it didn't work any better. Bounding the code with two sets of three backticks does work. Regards, Rich -- https://mail.python.org/mail

Re: Posting code on stackoverflow

2021-06-06 Thread Rich Shepard
On Sun, 6 Jun 2021, joseph pareti wrote: you need to put the code between 2 lines defined as follows: ``` then it will be formatted for you Thanks, Joseph. I figured that out on the web page. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Posting code on stackoverflow

2021-06-06 Thread joseph pareti
you need to put the code between 2 lines defined as follows: ``` then it will be formatted for you Am Sa., 5. Juni 2021 um 23:40 Uhr schrieb Rich Shepard < rshep...@appl-ecosys.com>: > I tried to post a question on stackoverflow.com which included a bunch of > code (entered after clicking the box

Re: Posting code on stackoverflow

2021-06-06 Thread dn via Python-list
On 06/06/2021 13.56, Terry Reedy wrote: > On 6/5/2021 5:36 PM, Rich Shepard wrote: >> I tried to post a question on stackoverflow.com which included a bunch of >> code (entered after clicking the box 'code'). I noticed that lines were >> wrapped but could not find how to expand the input box so the

Re: Posting code on stackoverflow

2021-06-05 Thread Terry Reedy
On 6/5/2021 5:36 PM, Rich Shepard wrote: I tried to post a question on stackoverflow.com which included a bunch of code (entered after clicking the box 'code'). I noticed that lines were wrapped but could not find how to expand the input box so they would not wrap. SO wouldn't let me post the qu

Re: Posting code on stackoverflow

2021-06-05 Thread Rich Shepard
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 th

Re: Posting code on stackoverflow

2021-06-05 Thread Roel Schroeven
Rich Shepard schreef op 5/06/2021 om 23:36: I tried to post a question on stackoverflow.com which included a bunch of code (entered after clicking the box 'code'). I noticed that lines were wrapped but could not find how to expand the input box so they would not wrap. SO wouldn't let me post the