# Help in Formatting Topics

**URL:** <https://forums.creativeclouddeveloper.com/t/help-in-formatting-topics/7994>\
**Category:** Forum Feedback\
**Created:** [June 12, 2024, 1:49pm UTC](https://forums.creativeclouddeveloper.com/t/help-in-formatting-topics/7994 "2024-06-12T13:49:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Billb](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@Billb](https://forums.creativeclouddeveloper.com/u/Billb)\
**Post date:** [June 12, 2024, 1:49pm UTC](https://forums.creativeclouddeveloper.com/t/help-in-formatting-topics/7994/1 "2024-06-12T13:49:05Z")

</div>

Hi this is a pretty basic question for some, but when I copy and paste code from Visual Studio Code the formatting is lost. Can someone help me on the best way to provide samples of code in topics and replies to maintain the formatting?

---

<div class="post-metadata">

**Author:** ![indranil](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/indranil/32/2584_2.png) [@indranil](https://forums.creativeclouddeveloper.com/u/indranil)\
**Post date:** [June 12, 2024, 2:38pm UTC](https://forums.creativeclouddeveloper.com/t/help-in-formatting-topics/7994/2 "2024-06-12T14:38:10Z")

</div>

Hello @Billb. Here’s how you can format code

```auto
const x = 5;

```

You can use the three backticks to start a code block and another set of three backticks to end it and then paste your code snippet in it.

---

<div class="post-metadata">

**Author:** ![Karmalakas](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/karmalakas/32/1048_2.png) [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)\
**Post date:** [June 13, 2024, 11:40am UTC](https://forums.creativeclouddeveloper.com/t/help-in-formatting-topics/7994/3 "2024-06-13T11:40:36Z")

</div>

This is `inline` code sample  
Becomes:  
This is `inline` code sample

* * *

````
```
This is block code sample
```

````

Becomes:

```auto
This is block code sample

```

You can also find the buttons to format your post in the editor you’re writing your text in

---

<div class="post-metadata">

**Author:** ![Billb](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@Billb](https://forums.creativeclouddeveloper.com/u/Billb)\
**Post date:** [June 13, 2024, 12:22pm UTC](https://forums.creativeclouddeveloper.com/t/help-in-formatting-topics/7994/4 "2024-06-13T12:22:05Z")

</div>

Thanks everyone for the reply - this will make it a lot more useful to show code in topics and replies.

---

<div class="post-metadata">

**Author:** ![Jarda](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/jarda/32/1909_2.png) [@Jarda](https://forums.creativeclouddeveloper.com/u/Jarda)\
**Post date:** [June 16, 2024, 9:43am UTC](https://forums.creativeclouddeveloper.com/t/help-in-formatting-topics/7994/5 "2024-06-16T09:43:27Z")

</div>

Don’t forget also add what langauge it is

````
```TS
// this is typescript
const x:Array<string> = [1,y as string];
```

````

Becomes

```TS
// this is typescript
const x:Array<string> = [1,y as string];

```

For JavaScript start with

````
```JS

````
