Ok, here is the diff to be applied to ReviewBoard-1.0rc3-py2.5.egg/
reviewboard/diffviewer/diffutils.py:

--- diffutils.py        2009/06/16 21:37:54     1.1
+++ diffutils.py        2009/06/16 21:58:24
@@ -9,6 +9,7 @@
 try:
     import pygments
     from pygments.lexers import get_lexer_for_filename
+    from pygments.lexers import get_lexer_by_name
     # from pygments.lexers import guess_lexer_for_filename
     from pygments.formatters import HtmlFormatter
 except ImportError:
@@ -291,9 +292,10 @@
         # XXX Guessing is preferable but really slow, especially on
XML
         #     files.
         #if filename.endswith(".xml"):
-        lexer = get_lexer_for_filename(filename, stripnl=False)
+        #lexer = get_lexer_for_filename(filename, stripnl=False)
         #else:
         #    lexer = guess_lexer_for_filename(filename, data,
stripnl=False)
+        lexer = get_lexer_by_name('html+php', stripnl=False)

         try:
             # This is only available in 0.7 and higher

Run pygmentize -L for the list of lexers.  This obviously will not
work for projects with mixed languages.

--Marcin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to