Code formatting bug

I noticed that I can not use formatting for the code. Can someone help with the solution?


If I use Numbered list, then I can not use the formatting for the code.

Example:

  1. Test message

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

  2. Test message


But everything works separately.

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

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

    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

4 Likes

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?

1 Like

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
```
5 Likes

Awesome. Tnx for help :heart:

You may wish to learn more about Markdown formatting, see http://commonmark.org/help

2 Likes