NEURON .hoc syntax highlighting for Smultron

Submitted by admin on Fri, 2008-02-22 17:32.

Recently I have been using Smultron to edit .hoc files for use with NEURON. I put together this syntax highlighting definition based partly on Smultron's built-in C mode, and partly on David Sterratt's HOC mode for emacs.

Installation

You will need to save the definition file nrnhoc.plist inside your Smultron.app bundle (right click, show bundle contents), in the Contents/Resources/Syntax Definitions/ directory. You will also have to add an entry to your Contents/Resources/SyntaxDefinitions.plist file within the bundle. Duplicate one of the existing dictionaries and set the values to:

  • extensions = 'hoc'
  • file = 'nrnhoc'
  • name = 'NEURON HOC'

Download Download nrnhoc.plist