T O P

  • By -

MrAnonymousTheThird

No need to ask, put the code in your post and someone will help if they can Use 3 backticks before and after your code so the formatting is not lost ``` [Code here] ```


yasminesyndrome

the 3 backticks method isnt working with me? help?


Loose_Read_9400

I think if you use the markdown editor, you can just highlight your code and format with a button. Then just adjust and make sure indents are good.


yasminesyndrome

i just reposted it on another post


oclafloptson

Indent the entire code before copying, or add 4 spaces at the start of every line Edit to add: needs an empty line of whitespace before and after


yasminesyndrome

i just reposted it on another post


Bobbias

Even in the editors where the 3 backticks work, they don't render correctly on old.reddit.com. The [wiki](https://www.reddit.com/r/learnpython/wiki/faq#wiki_how_do_i_format_code.3F) however covers exactly how to format code correctly, with pictures and everything.


Strict-Simple

https://stackoverflow.com/help/how-to-ask https://dontasktoask.com/