Code formatting bug


(Den Andreychuk) #1

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

(Gerhard Schlager) #3

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


(Den Andreychuk) #4

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?


(Gerhard Schlager) #5

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

(Den Andreychuk) #6

Awesome. Tnx for help :heart:


(Jeff Atwood) #7

You may wish to learn more about Markdown formatting, see Markdown Reference