Syntax Checking in Notepad++
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.
Related videos on Youtube
mika
Walking pumpkin pie. You're helping in SO by answering questions or by posing thoughtful questions. Remember, others (or you later on) will be looking at them for help.
Updated on September 18, 2022Comments
-
mika over 1 year
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?
-
n611x007 over 10 yearswhat 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?
-
n611x007 over 10 yearsfrom 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/…