Coda Tip: Add C++ Syntax Highlighting
Mar 4th, 2010 - 13 Comments - Posted in: tips & tutorials
Thought I should quickly post this in case it's useful to someone else...
I use Coda for just about all my web development needs. I've recently started learning C++ for some of my computer science classes, and being able to have FTP, the Terminal and file editing all in one application is incredibly useful. Unfortunately, it lacks basic C++ syntax highlighting, which is a bit of a pain.
Here are the quick steps required to add C++ syntax highlighting to Coda:
- Visit the SubEthaEdit site, and download the older 2.2 version of SubEthaEdit (older version is required to get this to work)
- Unzip the download, and then right click on the application and select "Show Package Contents"
- Navigate to Contents > Resources > Modes, and copy the "C++.mode" file
- Navigate to your applications folder, find Coda, and right click on the application and select "Show Package Contents"
- Navigate to Contents > Resources > Modes, and paste the "C++.mode" file
- Relaunch Coda if you already have it open
This should also work for other SubEthaEdit mode files, like C, Objective-C, Applescript, etc. You may also want to check the SubEthaEdit Modes page for additional syntax highlighting options, though they may not all be compatible with Coda.