Computer Science Canada

C# Syntax Highlighting on Mac

Author:  andrew. [ Thu Sep 16, 2010 10:52 pm ]
Post subject:  C# Syntax Highlighting on Mac

I was wondering if anybody knew of a good text editor that supports or can support C# syntax highlighting on Mac. Right now, I use TextWrangler.

Author:  [Gandalf] [ Thu Sep 16, 2010 10:54 pm ]
Post subject:  RE:C# Syntax Highlighting on Mac

TextMate is great. Smile

Author:  rdrake [ Thu Sep 16, 2010 11:01 pm ]
Post subject:  Re: RE:C# Syntax Highlighting on Mac

Gandalf @ Thu Sep 16, 2010 10:54 pm wrote:
TextMate is great. Smile
QFT.

In addition, Novell has put out MonoDevelop as part of their Mono suite.

EDIT: Dan fix that bug or [Gandalf] change your name.

Author:  andrew. [ Thu Sep 16, 2010 11:20 pm ]
Post subject:  RE:C# Syntax Highlighting on Mac

After a while of searching, I've finally managed to track down a Unity C# language module for TextWrangler. Although it has some extra stuff from Unity, I think it's good enough for my purposes.

@Gandalf: Maybe I'm just too inexperienced with the program or something, but it seems that TextMate doesn't have C# built-in and the only bundle I could find only had a few commands with no highlighting.

@rdrake: I might try MonoDevelop some other time. TextWrangler is good enough for now.

Thanks for the help guys.

Author:  andrew. [ Fri Sep 17, 2010 8:08 am ]
Post subject:  RE:C# Syntax Highlighting on Mac

Okay so I tried MonoDevelop and I really like it, but I can't figure out how to use console input. My program uses the Console.ReadLine(), but MonoDevelop automatically inputs nothing, and I don't get a chance to input.

Also, I tried to set up a compile function so it would compile and run, but I'm not sure how to invoke commands from the Terminal from the program.

Author:  jcollins1991 [ Fri Sep 17, 2010 9:40 am ]
Post subject:  Re: C# Syntax Highlighting on Mac

gedit has C# highlighting http://projects.gnome.org/gedit/

Author:  andrew. [ Fri Sep 17, 2010 10:25 am ]
Post subject:  RE:C# Syntax Highlighting on Mac

Thank you so much for suggesting GEdit! I used to use GEdit all the time on Linux and I didn't know they had a Mac port.

I have one more problem though, but it's with mono. When I use the command Console.ReadLine();, I can type but nothing shows up unless I delete everything I wrote and start again. Then it works properly. Can someone shed some light on this behaviour and how I can stop it? I know that using csc and executing it on Windows works as expected so it has to be a gmcs + mono problem.


: