views:

287

answers:

3

I've started messing around with Google App Engine, writing Java.

I love Visual Studio for many reasons, but currently my .py files just look like text.

I've searched the web looking for a way to get it to highlight python files (intellisense would be a nice bonus, but not required) but turned up nothing.

There are other questions on SO about this, but all the answers point at different IDEs, or installing IronPythonStudio (which seems overkill since I only want to colouring, and it might behave differently being geared at .NET anyway).

Does anyone know how to simple get VS to highlight Python? Is it really that uncommon? :(

+1  A: 

Unfortunately, I don't think there is any way to integrate VS with python.

If you want something not too heavyweight, you can use Komodo edit, - it is quite good for small-to-medium projects. You can use pydev+aptana studio or pydev+eclipse for bigger stuff. It is by no means lightweight, but pydev has some nice tools shipped with it (preconfigured), such as pylint.

As for code-completion, in my opinion, all python editors/IDE are a bit lacking in that area, but that is because of python's dynamic nature (in short, you can't figure what the code does before actually running it), so it can't be considered an IDE's flaw, or anyone's flaw for that matter.

shylent
... or for a list of Python IDE's: http://stackoverflow.com/questions/81584/what-ide-to-use-for-python
RedGlyph
Well, I've just mentioned the tools, I have personal experience with. I mean, everyone can use google (*right*?), maybe the questioner wanted an opinion of a real human.
shylent
The link is convenient to explore further in the same direction as your post, it gathers all the information in one place with the opinion of many other real humans :-) __Komodo__ (not Komodo Edit but the paying version) and __Pyscripter__ are the most accurate when it comes to intellisense according to my experience. __PyDev__ being the follow-up in a more convenient but heavier environment.
RedGlyph
@RedGlyph ... or Python Editors list: http://wiki.python.org/moin/PythonEditors
artdanil
No sweat, RedGlyph, I was just explaining why I've mentioned these particular tools. I was thinking of buying komodo ide for personal use, because eclipse sure does feel cumbersome at times. How is its intellisense better than Komodo Edit? Does it use different (additional) techniques for code analysis?
shylent
@artdanil: nice one, I've seen this list like one year ago and it has grown _a lot_! @shylent: sure, I just didn't want you to think my comment was a negative critic - it wasn't. Regarding __Komodo__, there is a trial you can download. Correction of what I stated previously: _intellisense_ looked the same, but with the IDE you have a code browser, useful tools, of course a good debugger, a shell, source control (supports SVN). That being said, nothing you won't have with PyDev for free except a smarter intellisense (though PyDev is getting very good too).
RedGlyph
+1  A: 

Under Windows you could use Notepad ++. It has syntax highlight for the python and is rather functionally rich, lightweight editor.

artdanil
A: 

Thanks for all the responses. I did scan through some Python IDEs (and their screenshots) and decided to check out IronPythonStudio. My .py files now get colour coded nicely, and there's some intellisense :) Unfortunately Ctrl+K,D doesn't work, but it's much nicer to code than the plain yellow text I had earlier.

For anyone that's a massive Visual Studio fanboy like me, IronPythonStudio is definitely better than just coding it as text ;o)

Danny Tuppeny