Disable syntax highlighting on unified views

Because we can't use background colors to denote added or removed
lines in the unified patch view, turn off syntax highlighting so
we can color the text of added lines green and deleted lines red.

Bug: issue 448
Change-Id: I994758b93e4f8b5633cd61c13911280c0bd7aafa
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2010-02-13 10:37:16 -08:00
parent 6f7f748231
commit 45442f8782
3 changed files with 19 additions and 1 deletions

View File

@@ -88,6 +88,7 @@ public abstract class PatchScreen extends Screen {
public Unified(final Patch.Key id, final int patchIndex,
final PatchTable patchTable) {
super(id, patchIndex, patchTable);
scriptSettings.getPrettySettings().setSyntaxHighlighting(false);
}
@Override