MarkdownJournal icon indicating copy to clipboard operation
MarkdownJournal copied to clipboard

Syntax highlighting

Open NorthrupAnthony opened this issue 8 years ago • 1 comments

Is there a way you could implement/allow syntax highlighted code blocks using the triple backtick syntax? Only allowing the indented code blocks makes typing stuff much more annoying because I have indent each line individually (or use a regex replace on notepad++, but still).

Example:

``` C #include <stdio.h> int main() { printf("Hello, World.\n"); return 0; } ```

Results in: (Supported by github)

#include <stdio.h>
int main() {
    printf("Hello, World.\n");
    return 0;
}

NorthrupAnthony avatar Dec 22 '16 19:12 NorthrupAnthony

If you need it to be ruby compatible, here's a gem that will help.

NorthrupAnthony avatar Dec 22 '16 19:12 NorthrupAnthony