đź“Ł How to provide your sample code in right format

Hello Community,

we found a lot of new posts with sample code are rendered in a pretty bad format: incorrect indent and punctuations in a different encoding, etc.

there is no secret but a simple markdown trick

your code should be included between two ```, the first one followed by language like python , without the ending comment #part

```python
print("Hello Markdown")
``` # show the escaped ending
5 Likes

One thing I noticed is if you click the “preformatted text” button in the UI, the recommendation is to use indentation rather than backticks. Is there any way to change this so that people are nudged in the right direction in case they didn’t see this post?

1 Like

@tcbegley that’s a good point, @chriddyp do you see any possible configuration with disqus?

Great point @tcbegley! Turns out there is a setting for this :tada:

image

3 Likes