# Python Code Formatting

**URL:** <https://discuss.write.as/t/python-code-formatting/6697>\
**Category:** Design\
**Tags:** troubleshooting, writeas\
**Created:** [August 26, 2022, 10:07pm UTC](https://discuss.write.as/t/python-code-formatting/6697 "2022-08-26T22:07:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![darinsecurity](https://discuss.write.as/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@darinsecurity](https://discuss.write.as/u/darinsecurity)\
**Post date:** [August 26, 2022, 10:07pm UTC](https://discuss.write.as/t/python-code-formatting/6697/1 "2022-08-26T22:07:24Z")

</div>

Hello there. How do I add python code formatting to a website.  
I have a line that says ‘print(“hello world”)’  
I try to format it by putting

```nohighlight
print("Hello World!")

```

– but that does not work. I’ve also tried `py, `python, and ```py3.  
How must I format python code on my posts? Thank you.

---

<div class="post-metadata">

**Author:** ![darinsecurity](https://discuss.write.as/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@darinsecurity](https://discuss.write.as/u/darinsecurity)\
**Post date:** [August 26, 2022, 10:13pm UTC](https://discuss.write.as/t/python-code-formatting/6697/2 "2022-08-26T22:13:37Z")

</div>

Nevermind, I’ve got it working – simply go into the plain editor and put ‘python’ after the tildes, in this way:  
‘’‘python  
print(“Hello World!”)  
‘’’
