Use a plain text editor to edit your files.
TextEdit is usable, after you configure it to save plain text
http://docs.info.apple.com/article.html?artnum=106212
but it's not really designed for editing program code.
Some Mac users prefer BBEdit. It costs about $200. I wouldn't bother with it; has too many
extraneous features and is far too expensive.
Check this site
http://xanana.ucsc.edu/xtal/useful_stuff.html
which lists a bunch of free text editors, some of which may already be installed on your Mac.
Program editors for OS X
Xcode works too
I will add a plug for Xcode, because if you are running NEURON on a Mac you will likely have this installed. It is *free* and comes with the Development environment that you need to do important things like compile *.mod files using Mknrndll.
You can find it by starting at the root disk:
Macintosh HD > Developer > Applications > Xcode
{Of course there is always Emacs in a terminal}
K.
You can find it by starting at the root disk:
Macintosh HD > Developer > Applications > Xcode
{Of course there is always Emacs in a terminal}
K.
I have used an editor called "Smultron". It's really very good, and made development go smoothly. I've also used a Japanese one called "mi" that works well, but wound up prefering smultron.
http://smultron.sourceforge.net/
http://smultron.sourceforge.net/
Aquamacs
I recommend Aquamacs Emacs in conjunction with the hoc and nmodl modes by David Sterratt, which will give you some syntax highlighting.
http://aquamacs.org/
http://homepages.inf.ed.ac.uk/sterratt/progs/neuron
http://aquamacs.org/
http://homepages.inf.ed.ac.uk/sterratt/progs/neuron
BBEdit is the way to go... Actually I love being able to store all my functions and code in the library. You can assign your own function keys to each as well. For those who don't know what it is, here's the link: http://www.barebones.com/
I think you can actually get an EDU discount to make it a bit more affordable.
HTH
I think you can actually get an EDU discount to make it a bit more affordable.
HTH
Hi
I put together a hoc syntax highlighting definition for Smultron:
http://www.outpost.org.uk/software/nrnhoc
Any comments of suggestions very welcome. Unfortunately the syntax highlighting in Smultron is a bit limited i.e. only one class of reserved words, so this is probably about as far as you can go with it at the moment.
I put together a hoc syntax highlighting definition for Smultron:
http://www.outpost.org.uk/software/nrnhoc
Any comments of suggestions very welcome. Unfortunately the syntax highlighting in Smultron is a bit limited i.e. only one class of reserved words, so this is probably about as far as you can go with it at the moment.
Re: Program editors for OS X
I use BBedit, and like it a lot, but I concede that a really high-powered text editor is only useful if you do a lot of programming, and I definitely conceed that you do not need to pay $200 for a really high-powered text editor.ted wrote: Some Mac users prefer BBEdit. It costs about $200. I wouldn't bother with it; has too many
extraneous features and is far too expensive.
However, Bare Bones Software, which makes BBEdit also gives away for free a really nice, lightweight text editor called TextWrangler.
http://www.barebones.com/products/textwrangler/
I also hear good things about TextMate
http://macromates.com/
Re: Program editors for OS X
The latest version of Smultron has a built-in syntax highlighting mode for NEURON .hoc files.
Re: Program editors for OS X
Hello, I have tried using XCode to edit *.mod files but the software recognises the files as audio mod. Can someone suggest a fix? Any pointers will be appreciated. Also, is there a plugin for XCode to recognise NEURON commands? Thank you.