diff --git a/src/lib/views/wiki/WikiRevisionDiffView.php b/src/lib/views/wiki/WikiRevisionDiffView.php index 87775e4..a9c99c8 100644 --- a/src/lib/views/wiki/WikiRevisionDiffView.php +++ b/src/lib/views/wiki/WikiRevisionDiffView.php @@ -53,9 +53,7 @@

Diff rdiff->oldRevision->revision; ?>/rdiff->newRevision->revision;?>

-
-
diff->getDiff(); ?>
-
+
diff->getInlineDiff(); ?>
wikiPath . '/' . $this->pageName; $link .= '?diff[' . $previous->revision . ',' . $revision .']'; $affectedBytes = strlen($history->wikitext) - strlen($previous->wikitext); + $affectedBytes = (($affectedBytes >= 0) ? '+' : '') . $affectedBytes; $affectedBytes = '' . $affectedBytes . ' bytes'; } diff --git a/src/media/css/global.css b/src/media/css/global.css index 56f555e..5184589 100644 --- a/src/media/css/global.css +++ b/src/media/css/global.css @@ -180,4 +180,23 @@ ul.menu { } .wikicontent { margin: 10px auto; +} +.wikidiff { + white-space: pre; + font-family: "Courier New", monospace; + font-size: 125%; + border: 2px solid #000000; + padding: 4px; + background-color: #FFFFFF; + overflow: auto; +} +.wikidiff del, .wikidiff ins { + text-decoration: none; + font-weight: bold; +} +.wikidiff del { + background-color: #FFCCEE; +} +.wikidiff ins { + background-color: #CCFFCC; } \ No newline at end of file