views:

106

answers:

4

I do something like "svn diff > /mystuff/current.diff". I want to view this .diff file with syntax highlighting.

jEdit does it, but it's a huge beast and it takes a while to start up. I want something lightweight/native.

Smultron/Fraise, TextWrangler, TextEdit, Dashcode don't seem to highlight .diff files.

FileMerge seems to want to generate diff files, not show you existing ones.

TextMate does the trick, but it's not free. I'd feel happier dropping $50 US if I was going to take advantage of it for anything more than a diff viewer.

Are there any alternatives to jEdit or TextMate that I should consider?

A: 

You might Versions, you can download a free demo version that will work for a limited time. You point it directly at you svn repository and you can compare versions. http://www.versionsapp.com/

Brent Baisley
Versions looks beautiful, but sometimes I need to open .diff files that did not originate from Subversion.
strawtarget
A: 

I currently use DiffMerge and it works really well for me. (I'm forced to use StarTeam and it integrates well with it)

Justin
DiffMerge looks like a cool app, but it doesn't appear to be able to open an already-made .diff file. Sometimes I need to look at a .diff without having access to the original(s). Thanks though!
strawtarget
+1  A: 

You could try an OSX GUI for vim, like the full-featured MacVim or the lightweight vim-cocoa...

(For a rough feature comparison, you can see this mailing list comment comparing them...)

Stobor
woot! MacVim does the trick. Thanks!
strawtarget
A: 

Not an editor but you could use GIT or Mercurial and their Mac GUI clients to view the highlighted diffs in any files. The clients are free.

PurplePilot