I was doing some work with .htaccess files, and some apache config files too, and found it frustrating to not have a syntax highlighting in Coda 2.
Well, i went ahead and I made one. (well, that’s a lie… I took a Coda 1 mode that I found on the internet, and made it work with Coda 2. While adding a few handy things, too.)
I think i’ll add some string support soon, and maybe I’ll end up adding some other features. In any case, I’ll have it available here:
EDIT 2: This has been tested with Coda 2.5, and has been updated! (This project is now available under the MIT license, at My Github account. Updates include those from Eric, Stan and Kevin below. Hope you all enjoy it! The previous link to goo.gl will remain functional, and points to the latest zip.)
EDIT: this has been updated 2014/01/02 http://goo.gl/REyvn (Hosted on dropbox. Used the google link so I can see how many downloads its getting. I’ll consider making it better if it gets many downloads.)
Updated to add some apache keywords. (Thanks to Michael Lindahl for pointing them out )
Read more for installation instructions.
1. Move ApacheConf.mode to “~/Library/Application Support/Coda 2/Modes”
2. Sometimes the “Modes” folder will not exist yet, so you can just create it.
3. Open Coda 2. (Or restart it!)
4. In Coda 2 preferences, “cmd – , ” , go to “Editor” and “Custom Syntax Modes” at the bottom.
5. Enter “conf” and set it to use apache. – this may already be done!
6. Enter “htaccess” and set it to use apache. – this may already be done!
7. Installation is now complete.
Feel free to let me know of anything I missed in the comments. I’m certain I left out some vital bit of apache .conf highlighting!
You can also set Coda 2 to use “Apache” as syntax highlighting via
Text -> Syntax Mode -> “Apache”.