# How insert code on post

**URL:** <https://www.phphelp.com/t/how-insert-code-on-post/32604>\
**Category:** General Chat\
**Created:** [October 1, 2020, 11:36am UTC](https://www.phphelp.com/t/how-insert-code-on-post/32604 "2020-10-01T11:36:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewvideouk](https://www.phphelp.com/letter_avatar_proxy/v4/letter/a/bb73d2/32.png) [@andrewvideouk](https://www.phphelp.com/u/andrewvideouk)\
**Post date:** [October 1, 2020, 11:36am UTC](https://www.phphelp.com/t/how-insert-code-on-post/32604/1 "2020-10-01T11:36:40Z")

</div>

Hi I am new here.

How insert code on post in here. When I try to add code the site is messing it up like for example the links in the php code get changed. I did try adding tags \< code \> \< / code \>

Thank you,.

---

<div class="post-metadata">

**Author:** ![Isitabird](https://www.phphelp.com/user_avatar/www.phphelp.com/isitabird/32/3313_2.png) [@Isitabird](https://www.phphelp.com/u/Isitabird)\
**Post date:** [October 1, 2020, 3:24pm UTC](https://www.phphelp.com/t/how-insert-code-on-post/32604/3 "2020-10-01T15:24:37Z")

</div>

> [@andrewvideouk](#):
>
> How insert code on post in here. When I try to add code the site is messing it up like for example the links in the php code get changed. I did try adding tags \< code \> \< / code \>

When ever I am trying to post code I open it in my text editor and tab it across 4 -5 spaces then copy and paste it in using code and /code in brackets

---

<div class="post-metadata">

**Author:** ![astonecipher](https://www.phphelp.com/user_avatar/www.phphelp.com/astonecipher/32/2797_2.png) [@astonecipher](https://www.phphelp.com/u/astonecipher)\
**Post date:** [October 1, 2020, 7:51pm UTC](https://www.phphelp.com/t/how-insert-code-on-post/32604/4 "2020-10-01T19:51:22Z")

</div>

three backticks

```auto
<?php
    echo "This is code";
```
