If you’re a Coda user who writes a lot of Codeigniter projects like me, you were probably using this Codeigniter syntax mode in your Coda 1 (submitted by author nextgengames underÃÂ User contributed modes of SubEthaEdit)
And if you upgraded to Coda 2, then imported the syntax mode, you were probably surprised to see that autocompleting features of the syntax mode were working as they used to, but the syntax coloring was gone.
Because in Coda 1, the syntax colorings were related to “Languages”.
In Coda 2, Panic decided to make it more flexible (as in many other features).
The Codeigniter syntax mode written for Coda 1 needs a tiny little update to work with Coda 2 as expected. What you got to do is very easy, still if you’re lazy enough skip the steps and download the file at the end of this post.
- Go to yourÃÂ Coda 2.app file (probably under your /Applications folder), CTRL+click on it and select Show Package Contents
- Under Coda 2.app package, findÃÂ Contents/Resources/PHP-HTML.mode, CTRL+click on it and selectÃÂ Show Package Contents
- UnderÃÂ PHP-HTML.mode package, go toÃÂ Contents/Resources and leave this folder open (we’re going to need in a minute)
- Go to ~/Library/Application Support/Coda 2/Modes/ (I’m supposing you already copied the CI syntax mode file here) and CTRL+click onÃÂ Codeigniter.mode and select Show Package Contents
- UnderÃÂ Codeigniter.mode package, go toÃÂ Contents/Resources
- Copy the following 2 files
- A version ofÃÂ SyntaxDefinition.xml is already there, overwrite it (or back up a version first, it’s up to you)
- Open these newly copied 2 files in a text editor and do a find/replace operation to change every “PHP-HTML” text to “Codeigniter”
And you’re done. Now in Coda 2, when you change the Syntax Mode to Codeigniter, both the autocompleting and the syntax coloring will work as they used to in Coda 1.
(updated for Coda 2.0.2)