views:

239

answers:

3

Hello everyone, Can someone advice me an editor which indents code?

I need an editor for just writing code syntax and mock code...but it should get formatted.

I'm not looking for advanced editors like Visual Studio or Eclipse that look through the meaning of the code to show compilation errors. I just need auto formatting and coloring too if possible.

Please advice... Thanks

A: 

Vim/gvim on Unix/any Linux/Mac OS/Windows.

stefanB
+8  A: 

NotePad++ is excellent and free!

Argalatyr
This one was perfect and good....Thank You
Josh
+1  A: 

Notepad2 is very lightweight (and simple to use) and provides decent syntax highlighting. I don't recall how good its auto-formatting is, though.

Reuben
What's the advantage in Notepad2 over Notepad++?
Josh
I found its user interface and menus to be a bit simpler, but it's really just personal preference. I also seem to recall preferring its default auto-tab behavior more than that of Notepad++, but it's been a while since I tried both.
Reuben