After installation of p4merge you might expect to have Monkey C syntax highlighting. Nope.
You can get this this way:
P4merge Installation:
brew install --cask p4v
dann
git config --global merge.tool p4mergetool
git config --global mergetool.p4mergetool.cmd \
"/Applications/p4merge.app/Contents/Resources/launchp4merge \$PWD/\$BASE \$PWD/\$REMOTE \$PWD/\$LOCAL \$PWD/\$MERGED"
git config --global mergetool.p4mergetool.trustExitCode false
git config --global mergetool.keepBackup false
git config --global diff.tool p4mergetool
git config --global difftool.p4mergetool.cmd \
"/Applications/p4merge.app/Contents/Resources/launchp4merge \$LOCAL \$REMOTE"
Monkey C syntax highlighting:
Download the C syntax highlithing from https://kate-editor.org/de/syntax/ i.e. https://kate-editor.org/syntax/data/syntax/c.xml
place it in your home directory:
For local user
|
$HOME/.local/share/org.kde.syntax-highlighting/syntax/
|
For Flatpak packages
|
$HOME/.var/app/package-name/data/org.kde.syntax-highlighting/syntax/
|
For Snap packages
|
$HOME/snap/package-name/current/.local/share/org.kde.syntax-highlighting/syntax/
|
On Windows®
|
%USERPROFILE%\AppData\Local\org.kde.syntax-highlighting\syntax\
|
On macOS®
|
$HOME/Library/Application Support/org.kde.syntax-highlighting/syntax/
|
Edit the file c.xml to add the *.mc file extension: i.e.
vi $HOME/Library/Application\ Support/org.kde.syntax-highlighting/syntax/c.xml:
<language name="C" section="Sources"version="18" kateversion="5.79"indenter="cstyle"extensions="*.c;*.C;*.h;*.mc"