Apr 27, 2006 So i use the text editor CONtext for the PC, and it is RAD. Syntax highlighting for CSS, HTML, PHP, and just about any other language you can think of. Syntax highlighting for CSS, HTML, PHP, and just about any other language you can think of. Notepad2 – A fast, light-weight text editor like Notepad for Windows with syntax highlighting and runs as a portable program Microsoft Word Replacements There are also free programs that act as replacements for Microsoft Word. Free Programmer's Editors, Integrated Development Environment (IDE), ASCII Text Editors. This page lists free programmers' editors, also known as source code editors, Integrated Development Environment or IDEs, ASCII text editors or plain text editors, syntax highlighting code editors and the like.
Active4 years, 3 months ago
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?
strawtargetstrawtarget51922 gold badges66 silver badges1818 bronze badges
Text Editor In Mac
5 Answers
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...)
StoborNotepad For Mac
Stobor34.8k55 gold badges5454 silver badges5959 bronze badges
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 BaisleyBrent Baisley12k22 gold badges2020 silver badges3737 bronze badges
I currently use DiffMerge and it works really well for me. (I'm forced to use StarTeam and it integrates well with it)
JustinJustinText Editor For Mac
2,97422 gold badges1919 silver badges3434 bronze badges
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.
PurplePilotPurplePilot
5,29433 gold badges3232 silver badges4141 bronze badges
Plain Text Editor For Mac
In a terminal, one can also use the command line version of vim (which I believe comes with the Xcode command-line developer tools).
Unfortunately, the command-line version of vim is not set up to do syntax highlighting by default, so there's a little bit of additional magic necessary.
For those not versed in vim, you need to know these three commands in order to view diff files:
Vim is good at automatically recognizing diff files, so it's usually not necessary, but if for some reason vim doesn't recognize your diff as a diff, you can tell it which syntax to use:
If your diff is of source code, you might also occasionally want to toggle back and forth between syntax highlighting of the diff and syntax highlighting of the code; you can also set the syntax to
java
, c
, php
, mysql
, or sh
, among others.Theodore MurdockTheodore Murdock