jincheng9 / markdown_supported_languages

Markdown supported languages for syntax highlighting
195 stars 27 forks source link

For markdown texts, we need to specify the languages for corresponding syntax highlighting.

Following is an example for highlighting c++ codes in markdown texts:

```cpp
bool getBit(int num, int i) {
    return ((num & (1<<i)) != 0);
}
Which becomes:
``` cpp
bool getBit(int num, int i) {
    return ((num & (1<<i)) != 0);
}

Note: The programming languages supported by the markdown depends on the markdown editor you use. The editor need to detect the language and do the syntax highlight.

Here's a full list of supported languages: