Coda syntax highlighting for Silverstripe

拥有回忆 提交于 2019-12-12 18:04:44

问题


I've just moved onto a new machine. On my old work horse, I had Silverstripe template (.ss) files following HTML syntax highlighting in Coda. I can't for the life of me remember how I turned this on (I remember it was something I did myself though). Google has turned up no results.

Any suggestions?


回答1:


UPDATE: The real way

In Coda, open Preferences, go to Editor, at the bottom, add a Custom Syntax Mode.


As per this guide:

  1. Right click on Coda.app in /Applications and select Show Package Contents
  2. Navigate to Contents/Resources/Modes/HTML.mode/Contents/Resources
  3. Open ModeSettings.xml
  4. Add <extension>ss</extension> to the list of extensions.

Or, make your mode (eg, SilverStripe.mode) and put it in ~/Library/Application Support/Coda/Modes

Or, copy HTML.mode to ~/Library/Application Support/Coda/Modes and then modify it, to preserve the original.

(For system-wide changes without modifying the application bundle, create the directory /Library/Application Support/Coda/Modes and put .mode directories there.)



来源:https://stackoverflow.com/questions/11110014/coda-syntax-highlighting-for-silverstripe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!