Add Code Styling to Code Blocks

Yorumlar

1 yorum

  • Neuffexx

    So turns out, something like this already exists, but its just never explained anywhere as far as I can see.
    I found this in a random reddit thread.

    Styling can be done for code blocks by adding the language parameter right at the beginning:
    ```(my language)
    // Some code…
    ```

    ie.
    ```c#
    for(var test in varibales)
    {
        if(test)
             return true;
    }
    ```

    Here is a guid on the it and a link with reference to more languages:
    https://gist.github.com/webermn15/47e3fb4ccadf8ac3cf66ee9011a507f5

    0

Yorum yazmak için lütfen oturum açın.