English 中文(简体)
What do you use to write Go [closed]
原标题:
最佳回答

under $GOROOT/misc there are syntax highlighting files for emacs, vim, xcode and kate. Using any of these editors should do.

问题回答

Somebody in the #go-nuts irc channel has a Go syntax file for gedit, so I would ask there if you want that.

I personally use what Rob Pike and Russ Cox use: acme. And I know Ken Thompson still uses sam.

Edit: For those interested, I have created a page to collect Go syntax highlighting files for various text editors. If you have any that is not included there let me know and I ll be happy to add it.

Dropping in to post the obligatory vim answer.

I ll see your vim and raise you one emacs.

Someone has released a bundle for TextMate if you re on a Mac. (just search the Go Google Group discussions).

After searching for alternatives, I found this thread. Mr Perez created a syntax file for gtk sourceview, so that editors such as gedit, scribes etc. can have syntax highlighting for Go~

just copy this to /usr/share/gtksourceview-2.0/language-specs/

Some info no-one has mentioned yet: The Go distribution comes with a program called gofmt which provides a standardized format for the language. You can run golfed Go through it and get clean output. See this example.

I am always using Emacs so I initially started thinking there would be no Go mode for Emacs and asked this question. Then a minute after I d asked I had the notion to do find . -name "*.el" at the top of the Go source tree and was able to answer my own question. Some other people seem to have found the answer useful.

Notepad++ could probably work with some tweaking of the syntax file for C++.

To see the differences read Go For C++ Programmers

vim or emacs? I haven t played around with Go yet, but those are the only editors I use when programming for myself.

Personally I find the split-window capability of kate to be quite useful in go programming. (Ubuntu 10.4 LTS with the kate syntax highlight file added)

Hotei





相关问题
Sybase Development IDE

Is there a Toad type application for Sybase? I can t seem to find a single one! I ve tried using VS 2008 but can t see the sproc source.

Good C IDE for Mac? [closed]

I ve just started a job where I m programming in C on a Mac, which is my first experience using a Mac for development. For now I m using Xcode as my editor, then using make/gcc/svn at the command line ...

What are your experiences with Code::Blocks? [closed]

I looked at Code::Blocks and it certainly looks great for c++ development, I like it s multiplatform capabilities (runs everywhere), but I wanted to get your feedback. Is it good/stable enough to be ...

What do you use to write Go [closed]

I know its a bit too early, but I ve been trying out Go (Google s Programming Language) and its kindof annoying to write code in gedit. So, my question: What do you use to experiment with Go?

Help with strange Delphi 5 IDE problems

Ok, I m going nuts here. For the last (almost) four years, I ve been putting up with some extremely bad behavior from my Delphi 5 IDE. Problems include: Seemingly random errors in coride50.bpl ...

Eclipse smart quotes - like in Textmate

Happy Friday — Does anyone know if eclipse has the notion of smart quotes like Textmate. The way it works is to select some words and quote them by simply hitting the " key? I m a newbie here so be ...

Selenium IDE: Incrementing values by 1 and 71

Currently I m incrementing a value called wert by 1 with the following code: getEval storedVars[ wert ]=${wert}+1; The value wert is something like 80401299. I want to add 1 to the value, if it ...

热门标签