Colored codes

Comments

2 comments

  • 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
    Comment actions Permalink
  • JoCKeR-iL

    @discord please being this feature to mobile

    0
    Comment actions Permalink

Please sign in to leave a comment.