Stephen Celis
66f490ff17
HTMLviews: various cleanups
2008-10-21 15:27:47 +02:00
Pieter de Bie
fe38069e39
HTML: Move tab replacement to start of diffhighlight
...
This might improve performance, as we don't have to match
again every line.
2008-10-10 21:59:23 +02:00
Pieter de Bie
70bc282982
HTML: Improve diff display performance
...
This improves the diff performance by a factor of around 10. Things done
to do this are, among others:
* user String.replace(//g) instead of String.gsub(). It's
*much* faster
* Don't use anonymous inner functions for iteration, but instead
use for loops
* Don't use String.startsWith() if we can just compare a
single character
Because we are now so much faster, we can also show bigger diffs
by default.
2008-10-10 21:59:22 +02:00
Pieter de Bie
a8cb5905ea
DiffView: Hilight trailing whitespace
2008-10-04 22:38:57 +02:00
Pieter de Bie
37a812504a
DiffView: make diff width 100%
2008-10-03 14:44:18 +02:00
Pieter de Bie
8c457e9f83
Use an alternative style for the diffs
2008-09-28 20:48:55 +02:00
Pieter de Bie
c3c4f98c66
Allow hunk navigation by using j/k keys
2008-09-12 22:12:58 +02:00
Pieter de Bie
045db4b625
WebView: limit diffs to a width of 250, not 100
...
100 was a bit low.
2008-08-19 00:26:29 +02:00
Pieter de Bie
b8b92e6aaf
PBWebGit: escape diff before inserting it into to the view
...
We used to escape a diff only after it was formatted. This would cause
some elements to hang the interface (like an iFrame)
2008-06-17 15:58:17 +02:00
Pieter de Bie
3432e514b8
Show nicely formatted diff
...
This steals the idea and markup from Gitnub. Thanks! :)
2008-06-15 18:22:00 +02:00