Forum Archive

How do you post code here?

kw

Can someone explain or point to how you can post highlighted/colored python code easily to this forum in Markdown? I tried using the < pre > and < code > tags, but it did not highlight colors. Thanks!

omz

Like this:

```python
print 'hello world'
```

...which is turned into:

print 'hello world'

(Note that there has to be a blank line before the code block.)