sublimehq / sublime_merge

Issue tracker for Sublime Merge
https://www.sublimemerge.com
273 stars 14 forks source link

Syntax highlight commit message (e.g. markdown) #627

Open chrisjbillington opened 4 years ago

chrisjbillington commented 4 years ago

It would be great if the commit message could be syntax highlighted, e.g. for markdown, since this gets rendered on github etc. Either detection of the syntax out of the list of known markup languages, or a global setting (I know I would only ever use markdown) would be pretty good.

srbs commented 4 years ago

See https://forum.sublimetext.com/t/commit-message-template/44643/2 & OdatNurd's reply for a workaround.

chrisjbillington commented 4 years ago

Aw yeah, thanks for that hint! That's fantastic. I guess I'll leave this open as "should be default" or "should be modifiable on a per-repo basis using a tiny button in the bottom right like in sublime text" or something like that, but feel free to close.

{
        "color_scheme": "Packages/Monokai-Dark/Monokai Dark.tmTheme",
        "syntax": "Packages/Markdown/Markdown.sublime-syntax",
        "rulers": [72, 50]
}

image