Friday, September 22, 2006

Notepad++ rocks

I heard about Notepad++ from Michael Carter, who showcased SQLAlchemy at our last SoCal Piggies meeting and used Notepad++ to edit his Python files. I downloaded it this week and all I can say is that it rocks! For Windows users, it's one of the best editors I've ever seen, and of course it's completely free. Notepad++ is based on the Scintilla editor, and it does syntax coloring for a gazillion languages (Python included of course), it includes a huge number of plugins, such as a Hex Editor, etc., etc. Highly recommended!

12 comments:

Daniel said...

While a happy Notepad++ user myself, I still think it's better as a helper tool for (the rare occasions) when PyScripter doesn't get the job done. And then there's PSPad for the eventual black magic :)

Anonymous said...

Programmer's Notepad 2 is also pretty cool, and now scriptable in Python, too!

Anonymous said...

I hate notepad++ for one reason, otherwise it's brilliant. That one reason is the autoindent feature that insists on autoindenting even if the previous line or current line is blank.

If you put your cursor on the file already containing a function and hit return, youre' funtion is indented - now why did it do that?

Nager said...

[That one reason is the autoindent feature that insists on autoindenting even if the previous line or current line is blank.]

This feature is optional in v3.9, so you can disable the autoindent (I hate it either).

Anonymous said...

how do you disable/enable autoindenting?

Anonymous said...

[ how do you disable/enable autoindenting? ]

In preferences dialog.

Anonymous said...

OK - While I like Notepad++'s niftyness - it is lightweight and close to textpad + free...... How does the auto-indent actually work?

What I did was I created an html file and added content with all tags.. Now when I say Indent in preferences, nothing happens.

I expected something on the lines of IntelliJ Idea (anybody used that??) where, you create / open an html doc (for example) and then select all (ctrl-A) and hit ctrl-alt-I.. voila - all indentation is done. This works for html, java, css, javascript, xml etc etc...

Are these two comparable? Is the auto-indent in both the tools similar??
How can I achieve the IDEA effect in Notepad++ (assuming there is an auto-indent feature..)???

chris said...

I took a look on Notepad++ and it looked good. But it reminded me of UltraEdit (which is not free though) and I guess I am a bit frightened of editors with a million options and a menu bar which needs at least a 1024px window...

I find Scite completely sufficient for most tasks, including Python development (although I do use Pythonwin too). So I guess there are alternatives (even the feature monster that is Eclipse...)

Anonymous said...

For Linux you may to look into Scribes, popularly dubbed TextMate for Linux.

http://scribes.sourceforge.net/demo.htm

Zeta said...

Hello all

ti reindent XML (like ctrl-alt-I) you must use Tidy.

Menu "TextFX" -> "TextFX HTML Tidy" -> "Reindent XML"

Here you can find info to config it
http://tidy.sourceforge.net/docs/quickref.html

Bye from Zeta

' said...

I have notepad++ and it has htmltidy installed, and a full config file is installed, but nothing happens when I try to tidy anything. This is on XP.

Zeppe said...

For future reference: I had the same problem (HTML Tidy "reindent XML" not working), I solved it by manually creating a directory named "NppTextFXA" in {NOTEPADPP_ROOT}\ansi\plugins\Config\