views:

1335

answers:

20

I'm looking for a text editor, much like TextMate (www.macromates.com) on Mac, but I want it to have a built-in compiler.

For example, I do not want an IDE like Visual Studio or Eclipse. I'm looking for an editor where I can click "Run" and it will compile my code and show me the results in a terminal.

I know of a text editor, which is TextMate's sister application for Windows, but it does not have a built-in compiler. I also do not want to install Cygwin for g++/gcc.

+7  A: 
VonC
+4  A: 

JEdit?

ninesided
+7  A: 

Have a look at http://en.wikipedia.org/wiki/Comparison_of_text_editors

Paul Lydon
Maybe more direct link : http://en.wikipedia.org/wiki/Comparison_of_text_editors#Programming_features
Mac
+4  A: 

You are asking for an editor that will allow you to compile and show the results in a terminal but is not an IDE??

Anyway...

This is the most lightweight editor that can be connected to a compiler for Windows.

http://www.codeblocks.org/

Unknown
Well, I guess I'm asking more of "Is there a compiler in cmd.exe?" Because on my Unix systems, all my text editors can click "run" and it will autocompile (using g++/gcc) and not it's own built in compiler.
hahuang65
Well you do know what the I in IDE means? Integrated. If you have the option to run a compiler, its integrated.
Unknown
+36  A: 

Notepad++

It is based on Scintilla and is available under GPL.

Additionally I recommend downloading the MinGW port of GCC.

DR
+10  A: 
Gary Willoughby
I'd +1 you for Smultron, but unfortunately it's not on Windows
Robert Gould
Agreed, EditPlus is fantastic. It's what I moved to after Crimson Editor.
Factor Mystic
+3  A: 

PSPad

Robert Gould
+4  A: 

Have you checked out Programmer's Notepad?

When I was in school for Java, the lovely teacher forced us to use a notepad to write the code, and we were suggested to use Programmer's Notepad.

Programmer's Notepad Link here!

Richard B
Thanks :) Programmer's Notepad is also based on Scintilla (like Notepad++) and open source with the BSD license.
Simon Steele
+10  A: 

It's going to be a steep learning curve, but have you tried Emacs ? It contains all the features of text mate and an IDE, if you know where to look. You can compile code at the push of a button, but you may have a few other things to get used to (like Ctrl-s is search, not save by default - but you can configure that - you may want to look at cua mode which will set some of the keys to the windows defaults ;)

l0st3d
+3  A: 

I use Komodo Edit. It has great support for XML, HTML, PHP, Python and other dynamic languages, and syntax highlighting for tons of other languages. The only con I can think of is the memory usage. Komodo is built in Python on the Mozilla platform, so it's not the lightest one around.

AKX
+7  A: 

As much as I love to see more threads with Programmer's Notepad links, this topic has been covered loads of times on StackOverflow, here's a sampling:

Questions mentioning Notepad++

Questions mentioning Programmer's Notepad

As for getting compiling going, you can call your chosen toolchain in lots of different ways from most good text editors. If we say you want to do C++ development then at the most simple here is a set of steps you could take:

  1. Get Visual C++ Express (free) or MinGW
  2. Make a very simple makefile, something like the one below
  3. Set up a tool in your editor to call make in your file's current directory
    test.exe: test.obj 
      link test.obj

    test.obj: test.cpp test.h
      cl -c test.cpp
Simon Steele
+6  A: 

I don't get the "built in compiler" demand - as far as I know there is no universal compiler :)

UltraEdit is not free but it has a plethora of different languages it supports.

zzzuperfly
+1. I really like Ultraedit. We have a bunch of people at my company that use SlickEdit which is really nice (more expensive though), I bought UltraEdit for my personal use.
Jason S
Ultra-edit is perhaps the only program I've been unable to live without. I liked notepad++, but something as simple as the way it handles shift+tab turned me off. UltraEdit's default settings just work for me, and it's fast. Seconding the vote for UE.
Chris
+11  A: 

VIM!!!

And now I've had my VIM rant I'm going to rant some more.

TextMate doesn't have a built in compiler. I don't think you fully grok programming at any level yet. TextMate simply has "bundles" that are configured to call the Apple XCode tools. AFIK there are bundles for pretty much everything you can think of. Some things (like perl, python, etc) are installed on the base system with Mac.

If you want a compiler on windows you'll either need the MS tools or Cygwin, MingW, Digital Mars (not free), etc. There is no such thing as an editor with a built in compiler - the compiler MAY have been bundled in a package with the editor/IDE however (Code::Blocks from memory packaged Mingw). I think you should try Cygwin since it comes with VIM and a compiler, just like you want.

Adam Hawes
@Adam Hawes, I believe I understand your point but please be careful not to go too hard on the OP. Someone who doesn't understand the difference between a "built-in" compiler and having a spawned process run a compiler is possibly lacking in understanding but not necessarily dumb.
Onorio Catenacci
There is such as thing as an editor with a built in compiler. It's called Visual Studio - and it is switched on for 2008 SP1 (switched off since 2003). What does it mean? Near instant compiles when I hit F5.
Jonathan C Dickinson
All hail the mighty Vim. @Jonathan: Visual Studio's has a "has-a" relationship to both its editor and its compiler. It has an "is-a" relationship to neither. It's an IDE.
veefu
+8  A: 

I use e which touts itself as TextMate for Windows - I wouldn't go quite that far, but it is good (it has the notion of bundles for different file types, lifted from TextMate).

It isn't free, but it's been worth the license fee.

Unsliced
I'm using E. There is no editor with a built-in compiler just because it's a dumb idea. I'm gonna just use Cygwin's gcc/g++ to compile. Thanks for the help guys
hahuang65
+8  A: 

Textpad is pretty good. In fact if it finds a java JDK installs it creates shortcut keys that allow you to compile and run applets and java applications

Conrad
+1 been using textpad for years (hell, even paid for it), I love the document classes and syntax highlighting.
SomeMiscGuy
+1 I'm a TextPad man too - it could do with a facelift at some point though
ninesided
Me too! :) I especially use the regex search/replace, which seems to work a lot better than either Visual Studio or Notepad++
GalacticCowboy
+2  A: 

I use EditPad Pro, it's nice.

unwind
+1  A: 

Source Insight is probabbly the best C/C++ editor in existence. It's also a really good C# editor.

It may not meet all your requirements, but you should check it out.

It really comes in handy when working with a large codebase.

It does not, however, have a built-in compiler.

But, you can download the Windows / .NET Framework SDK and hookup their command line compilers to Source Insight.

The only real downside is that it does not have a debugger. For debugging I would use Visual Studio (it has a very good debugger).

Scott Wisniewski
+4  A: 

Try Emacs. It's lightweight and extremely powerful with sane shortcuts. It will increase your productivity immensely. It can even cook your food!

fengshaun
A: 
Jonathan Sampson
A: 

I used to use UltraEdit (mentioned in another answer), but earlier this year "upgraded" to UEStudio, which is like a supercharged UltraEdit for programmers - includes built-in support for a variety of compilers and many, many other things. Details here: http://www.ultraedit.com/products/uestudio/differences.html

It's not free, but it's well worth what they ask for it. I had been using UltraEdit since 2001 and haven't felt the need to look at other editors outside of what IDM offer.

Of course, editors are like religion so... :)

MetalMikester