RETIRED, Gerrit as used by OpenStack
Go to file
Shawn O. Pearce 47cfa6d8cf Move syntax highlighting back to client
Mozilla Rhino is just slow running the JavaScript for prettify.
Its quicker inside of most modern browsers, especially ones that
have a good JIT like Goole Chrome or Safari 4.

Move the rendering back onto the client side.  To do this correctly
we have to ship the entire file to the client.  So what we do is,
we send the entire "A" file, the old image, and only the new lines
from the "B" file, the new image.  When formatting locally on the
client we recreate the full "B" file in order to syntax highlight it.

If a file is considered large, over 9000 lines, we still only send
part of the file and we disable the syntax highlighting.  This way
the client doesn't get bogged down in rendering lots of text when
the file is something really massive.

Bug: issue 439
Change-Id: Ib70c6526af09f84ebbfe467cfbb27c75ca7c9ad7
Signed-off-by: Shawn O. Pearce <sop@google.com>
2010-02-16 12:07:09 -08:00
Documentation documentation: Improve Apache mod_proxy configuration 2010-02-16 11:56:08 -08:00
gerrit-common Move syntax highlighting back to client 2010-02-16 12:07:09 -08:00
gerrit-gwtdebug Update to GWT 2.0.1 2010-02-08 10:49:24 -08:00
gerrit-gwtui Move syntax highlighting back to client 2010-02-16 12:07:09 -08:00
gerrit-httpd Move syntax highlighting back to client 2010-02-16 12:07:09 -08:00
gerrit-launcher Fix package-before-copyright in GerritLauncher 2009-12-30 17:19:48 -08:00
gerrit-main Fixing Eclipse settings file 2010-01-20 15:17:02 -08:00
gerrit-patch-commonsnet Cleanup Maven build by pushing component dependencies down 2009-12-30 17:19:47 -08:00
gerrit-patch-jgit Highlight line-level (aka word) differences in files 2010-01-30 19:58:15 -08:00
gerrit-pgm Use JGit's LockFile to copy files during init 2010-02-02 11:33:17 -08:00
gerrit-prettify Move syntax highlighting back to client 2010-02-16 12:07:09 -08:00
gerrit-reviewdb Force validation of the author and committer lines during push 2010-01-29 07:36:01 -08:00
gerrit-server Skip gitlink modes as we can't get a content difference 2010-02-16 11:56:05 -08:00
gerrit-sshd Move new change display to PostReceiveHook 2010-02-10 20:00:07 -08:00
gerrit-util-cli Teach all ssh commands to stop option parsing on -- 2010-01-16 14:04:45 -08:00
gerrit-util-ssl Start next release development 2009-12-21 13:27:30 -08:00
gerrit-war Be specific about the Maven plugin groupId 2009-12-30 17:19:49 -08:00
tools Run prettify on the server using whole file contents 2010-01-30 16:12:29 -08:00
.gitignore Add standard eclipse generated files to .gitignore 2010-01-29 16:53:05 -08:00
COPYING Initial project setup of Gerrit 2 2008-11-14 16:59:34 -08:00
INSTALL Remove Gerrit 1.x to 2.x import tools 2009-03-27 20:20:10 -07:00
pom.xml Update to H2 1.2.128 2010-02-08 11:12:17 -08:00
SUBMITTING_PATCHES Document how to contribute to Gerrit Code Review 2009-07-02 13:45:52 -07:00