Open
Bug 361507
Opened 19 years ago
Updated 14 years ago
[PatchReader] Show line changes character by character
Categories
(Bugzilla :: Attachments & Requests, enhancement, P3)
Bugzilla
Attachments & Requests
Tracking
()
NEW
People
(Reporter: steffen.wilberg, Unassigned)
References
Details
Patch Viewer should not only show changes line by line, but also character by character, using a darker color.
Example: http://bugs.beryl-project.org/trac/changeset/1338
Other diff apps do this as well, e.g. kompare (IIRC).
Comment 1•19 years ago
|
||
Very interesting. Do you know what tool or algorithm they're using to generate that? diff certainly doesn't do it, as far as I know.
| Reporter | ||
Comment 2•19 years ago
|
||
The Beryl project uses the Trac bug tracking system: http://trac.edgewall.org/.
After browsing the Trac source for a while, I found it:
http://trac.edgewall.org/browser/trunk/trac/versioncontrol/diff.py
See diff_blocks and _get_change_extent.
They're inserting <del> tags around deleted characters and <ins> tags around inserted ones within a line, which are then styled by css:
http://trac.edgewall.org/browser/trunk/htdocs/css/diff.css
Updated•19 years ago
|
Priority: -- → P3
Summary: make Patch Viewer show changes character by character → [PatchReader] Show line changes character by character
| Reporter | ||
Comment 4•19 years ago
|
||
MediaWiki does this as well: http://wiki.mozilla.org/index.php?title=Bugzilla%3ABug_Layout_Revision&diff=45784&oldid=45783
Source is at: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/wikidiff2/
You need to log in
before you can comment on or make changes to this bug.
Description
•