Colored codes

Kommentare

1 Kommentar

  • Evan

    So, I assume you're talking about Syntax Highlighting. If so, I have great news, Discord already offers it!

    You can use:
    ```language
    code
    ```
    in order to show highlighted code in a particular programming language on Desktop (on Mobile this still doesn't show the highlighting, Discord please!)

    Here's an example in Python
    ```python
    def hello(person):
        if not person:
            person = "world"
        print(f"Hello, {person}!")
    ```

    This does not yet support Minecraft function files specifically, but, that appears to be because Discord uses a third party library for syntax highlighting and they don't yet support it!

    0
    Aktionen für Kommentare Permalink

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.