Setting Foreground and Background Colors in P4Merge
TASK
How do I set foreground and background colors in P4Merge?
SOLUTION
To set the foreground and background colors in P4Merge, you use the -fg and -bg flags when you launch P4Merge from the command line. For example:
On Windows:
p4merge -fg black -bg white $1 $2 $3
On UNIX variants:
p4v -merge -fg black -bg white $1 $2 $3
To have these settings recognized when launching P4Merge from P4V, you configure your P4V Preferences to enable the diff and merge tools to use "External application", and point them at a script containing the p4merge command invocation from the example above.
