Skip to main content


login to my project management solution:

* Required Fields

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:

Step 1:

  • 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

Step 2:

  • 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

Step 3:

  • Enjoy!

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.

Comments (13):

Oct 7th, 2010 3:42 AM
GENIUS!!!! thanks a lot!
Jan 11th, 2011 12:13 PM
Thank you, great trick!
Feb 7th, 2011 9:27 AM
Thanks! Appears to work with Coda from App Store, too.
Mar 6th, 2011 3:36 AM
Thanks a lot!
Apr 27th, 2011 8:53 AM
Thank you!
Jun 30th, 2011 8:59 PM
Thanks for this great tip :), Now i have some code completion with Objective-C also.
Jan 28th, 2012 4:43 PM
You, sir, are fantastic.
Feb 28th, 2012 11:50 PM
very useful for me.
Jul 2nd, 2012 10:35 AM
For coda 2 there is no modes folder in the application so just add it to the resources folder!
Jul 5th, 2012 8:57 AM
For coda 2 I put the C and C++ modes in the resources folder and they show up, indeed, but there is no color coding. Albert (or anybody else): does this work with you ? Am I missing something ?
Mar 11th, 2013 4:14 PM
in Coda 2 use this path for modes

~/Library/Application Support/Coda 2/Modes
Jul 21st, 2013 9:26 PM
In Coda 2, this method seems not work, can anyone help? I want to add the mode of C++, fortran and matlab so the syntax color can appear. please help??
Benjamin Falk
Jul 22nd, 2013 11:51 AM
Unfortunately I don\'t know an alternate way to do this for Coda 2.

Add comment:

NOTE: Your mail address will not be displayed or shared.