Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am currently programming Python on Notepad++. Many times I have been bogged down by typos and misspellings. It's becoming frustrating to find those errors when writing so many lines of code. Is there syntax checking for Notepad++? I know a SO user offered a script like this:

console.show()
console.clear()
console.run('cmd.exe /c '
            + 'C:\\Python27\\Scripts\\pylint.bat --reports=n -f parseable '
            + '"%s"' % notepad.getCurrentFilename())

But when I added it to Notepad++, created an icon out of it, nothing happened. How do I use this script?

share|improve this question

migrated from stackoverflow.com Mar 22 '13 at 7:31

This question came from our site for professional and enthusiast programmers.

    
What is the problem? What have you tried? What is the output? What is the desired output? –  FakeRainBrigand Mar 22 '13 at 5:36
add comment

3 Answers 3

First install Pylint and its dependencies. I also added pylint.bat to Python27/Scripts. Downloaded Python Scripts. Then go to Show Console under Plugins and Scripts. Make sure to have a .py file open. Enter in

console.run('cmd.exe /c ' + 'C:\Python27\Scripts\pylint.bat --reports=n -f parseable ' + '"%s"' % notepad.getCurrentFilename())

And it will give you a list of errors.

share|improve this answer
    
what plugin do you use to "show consolder under plugins and scripts"? could you specify the plugin name to install from menu>plugins>plugin manager, and clarify if I understand well that what you've written means menu>Plugins>Scripts>Show Console for real? –  naxa Aug 23 '13 at 10:27
    
from another answer I figured out that this is the Python Script plugin. So the menu is: menu>Plugins>Python Script>Show Console. But first Install "Python Script". I already had it, but supposedly from menu>Plugins>Plugin Manager, or else check the other answer for link. The other answer is stackoverflow.com/questions/4987920/… –  naxa Aug 23 '13 at 10:31
add comment

For Python (also Perl, PHP, Ruby, Javascript) development, I would recommend using Activestate Komodo IDE - it is very powerful, has live syntax checking, code completion, debugger, regex toolkit, works and looks almost identical on Windows, Mac and Linux, etc.

However, Komodo IDE is commercial tool and is not free (it costs $200+). Fortunately, there is free open source flavor of it called Komodo Edit. It still has the same great live syntax checker and syntax highlighter, but it does not have Python debugger. Give it a try - it is very good editor.

share|improve this answer
add comment

Also consider using SynWrite editor, it has simpler external tools configuring. You can also call PyLint tool ang go to errors, but easier than in Notepad++, maybe.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.