# Code formatting bug

**URL:** <https://meta.discourse.org/t/code-formatting-bug/80327>\
**Category:** Support\
**Created:** [February 11, 2018, 8:43pm UTC](https://meta.discourse.org/t/code-formatting-bug/80327 "2018-02-11T20:43:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Denis\_Frosty\_Andreyc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denis_frosty_andreyc/32/87114_2.png) [@Denis\_Frosty\_Andreyc](https://meta.discourse.org/u/Denis_Frosty_Andreyc)\
**Post date:** [February 11, 2018, 8:43pm UTC](https://meta.discourse.org/t/code-formatting-bug/80327/1 "2018-02-11T20:43:18Z")

</div>

I noticed that I can not use formatting for the code. Can someone help with the solution?  
https://www.youtube.com/embed/6Q2gQtD-v1k?feature=oembed&wmode=opaque

* * *

If I use **_Numbered list_** , then I can not use the formatting for the code.

_Example:_

1. Test message

2. Test message

* * *

But everything works separately.

```
java -Dfile.encoding=UTF-8 -jar forge-1.8-11.14.4.1577-universal.jar 
pause

```

---

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [February 11, 2018, 9:13pm UTC](https://meta.discourse.org/t/code-formatting-bug/80327/3 "2018-02-11T21:13:03Z")

</div>

The toolbar button doesn’t use the right indentation within lists. You’ll need to do it manually.  
You need to use 3 additional spaces within lists.

````
1. Test message
   ```
   java -Dfile.encoding=UTF-8 -jar forge-1.8-11.14.4.1577-universal.jar
   pause
   ```
       java -Dfile.encoding=UTF-8 -jar forge-1.8-11.14.4.1577-universal.jar
       pause   

2. Test message
````

Which looks like this:

1. Test message

2. Test message

---

<div class="post-metadata">

**Author:** ![Denis\_Frosty\_Andreyc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denis_frosty_andreyc/32/87114_2.png) [@Denis\_Frosty\_Andreyc](https://meta.discourse.org/u/Denis_Frosty_Andreyc)\
**Post date:** [February 11, 2018, 9:16pm UTC](https://meta.discourse.org/t/code-formatting-bug/80327/4 "2018-02-11T21:16:11Z")

</div>

Thanks for the answer. Now everything works perfectly.  
One more question. Can I remove cyan color for `java` and for `1.8-11.14.4.1577`?

---

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [February 11, 2018, 9:19pm UTC](https://meta.discourse.org/t/code-formatting-bug/80327/5 "2018-02-11T21:19:02Z")

</div>

Sure. Add `text` after the backticks or indent the code snippet with spaces.

````
```text
java -Dfile.encoding=UTF-8 -jar forge-1.8-11.14.4.1577-universal.jar
pause
```
````

---

<div class="post-metadata">

**Author:** ![Denis\_Frosty\_Andreyc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denis_frosty_andreyc/32/87114_2.png) [@Denis\_Frosty\_Andreyc](https://meta.discourse.org/u/Denis_Frosty_Andreyc)\
**Post date:** [February 11, 2018, 9:20pm UTC](https://meta.discourse.org/t/code-formatting-bug/80327/6 "2018-02-11T21:20:07Z")

</div>

Awesome. Tnx for help ❤

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [February 11, 2018, 11:14pm UTC](https://meta.discourse.org/t/code-formatting-bug/80327/7 "2018-02-11T23:14:34Z")

</div>

You may wish to learn more about Markdown formatting, see [Markdown Reference](http://commonmark.org/help)

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [June 8, 2024, 12:43pm UTC](https://meta.discourse.org/t/code-formatting-bug/80327/8 "2024-06-08T12:43:29Z")

</div>

This topic was automatically closed after 2308 days. New replies are no longer allowed.
