Program editors for OS X

Post Reply
ted
Site Admin
Posts: 6287
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Program editors for OS X

Post 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.
kelvin
Posts: 10
Joined: Tue Jun 07, 2005 10:00 pm
Location: Edmonton, AB Canada
Contact:

Xcode works too

Post 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.
pbmanis
Posts: 3
Joined: Thu Jun 14, 2007 9:02 pm
Location: UNC Chapel Hill
Contact:

Post 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/
jhp

Aquamacs

Post 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
brianp

Post 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
stu
Posts: 4
Joined: Fri Feb 22, 2008 2:36 pm
Location: University of Edinburgh
Contact:

Post 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.
sec6
Posts: 39
Joined: Sat Mar 15, 2008 10:32 am

Re: Program editors for OS X

Post 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/
stu
Posts: 4
Joined: Fri Feb 22, 2008 2:36 pm
Location: University of Edinburgh
Contact:

Re: Program editors for OS X

Post by stu »

The latest version of Smultron has a built-in syntax highlighting mode for NEURON .hoc files.
SurG
Posts: 11
Joined: Fri Jun 19, 2015 4:39 pm

Re: Program editors for OS X

Post 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.
Post Reply