Page 1 of 1

Program editors for OS X

Posted: Thu May 03, 2007 6:34 pm
by ted
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.

Xcode works too

Posted: Thu May 31, 2007 2:36 am
by kelvin
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.

Posted: Thu Jun 14, 2007 9:06 pm
by pbmanis
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/

Aquamacs

Posted: Tue Oct 30, 2007 4:22 am
by jhp
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

Posted: Mon Nov 05, 2007 8:51 pm
by brianp
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

Posted: Fri Feb 22, 2008 2:46 pm
by stu
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.

Re: Program editors for OS X

Posted: Thu Aug 07, 2008 7:32 pm
by sec6
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.
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.

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

Posted: Wed Feb 11, 2009 4:02 pm
by stu
The latest version of Smultron has a built-in syntax highlighting mode for NEURON .hoc files.

Re: Program editors for OS X

Posted: Thu Nov 12, 2020 5:58 pm
by SurG
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.