# How do you post code in the forum?

**URL:** <https://forum.freecodecamp.org/t/how-do-you-post-code-in-the-forum/711894>\
**Category:** freeCodeCamp Support\
**Created:** [September 20, 2024, 1:02pm UTC](https://forum.freecodecamp.org/t/how-do-you-post-code-in-the-forum/711894 "2024-09-20T13:02:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adran](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/adran/32/373104_2.png) [@Adran](https://forum.freecodecamp.org/u/Adran)\
**Post date:** [September 20, 2024, 1:02pm UTC](https://forum.freecodecamp.org/t/how-do-you-post-code-in-the-forum/711894/1 "2024-09-20T13:02:56Z")

</div>

I’ve been trying to give people examples, but I don’t know how to format it right. Can anyone help?

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [September 20, 2024, 1:52pm UTC](https://forum.freecodecamp.org/t/how-do-you-post-code-in-the-forum/711894/2 "2024-09-20T13:52:19Z")

</div>

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (`</>`) to add backticks around text.

 ![Pre-formatted-text](https://global.discourse-cdn.com/freecodecamp/original/3X/1/b/1b18854f1059217f29370444396145cc3a0cd8ae.gif)

See [this post](https://forum.freecodecamp.org/t/forum-code-formatting/25574) to find the backtick on your keyboard.  
**Note:** Backticks (`) are not single quotes (').

---

<div class="post-metadata">

**Author:** ![Adran](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/adran/32/373104_2.png) [@Adran](https://forum.freecodecamp.org/u/Adran)\
**Post date:** [September 20, 2024, 2:56pm UTC](https://forum.freecodecamp.org/t/how-do-you-post-code-in-the-forum/711894/3 "2024-09-20T14:56:40Z")

</div>

```auto
console.log("Thank you!")

```

It works!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [March 22, 2025, 2:57am UTC](https://forum.freecodecamp.org/t/how-do-you-post-code-in-the-forum/711894/4 "2025-03-22T02:57:09Z")

</div>

Closed on March 22, 2025, 2:57am UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
