Add Bash syntax highlighting to Coda

Coda LogoJust a quick tip here. Panic’s web-focused IDE Coda uses SubEthaEdit’s rendering engine. Coda uses an OLDER version of SubEthaEdit’s rendering engine. So if you want to add syntax highlighting modes to Coda they have to be older versions.

I wanted to add the Bash syntax mode from SubEthaEdit to Coda, but had to go back a few versions in SubEthaEdit to get one that would load. Fortunately SubEthaEdit 2.2 is still available for download and contains a compatible Bash mode.

To extract it you need to download the SubEthaEdit 2.2 version and mount the .dmg file. Right click on the SubEthaEdit icon and select “Show Package Contents”. Navigate to the Resources/modes folder and copy the bash.mode to your ~/Library/Application Support/Coda/Modes folder. Restart Coda if it was open.

I’m not sure how to identify the newer versions of modes other than to just let Coda tell me that it won’t work after I add the mode, and I’m not sure what it is about the newer modes that invalidates them for the older rendering engine in Coda. At least we’re not left out in the cold, though.

It’s no TextMate, but it’ll work 😉

Tagged as: coda highlight mode subethaedit syntax