Source (link to git-repo or to original if based on someone elses unmodified work): https://gist.github.com/thevladsoft/e9e0268952cac0cd516f4f4b79e6e5ba
Syntax highlighting for the COMMIT_EDITMSG file in the .git directory. It uses a syntax similar to the one used by vim.
The idea is to be able to use kate/kwrite for committing with git. for example, in kile I have this command in settings/tools/build:
env 'GIT_EDITOR=kwrite' git commit -a
git add %source
I can easily commit any changes without using the terminal.