How to check errors in notepad?
jslint is the work of Douglas, used to check javascript syntax errors or give good coding suggestions.
Now I mostly use notepad to write/check some scattered js codes, so one day I suddenly thought about whether there is a jslint plug-in. I searched online and found that there is indeed one. It is included as follows for reference.
Recommendation: "notepad usage tutorial"
The installation steps are as follows:
First download the plug-in here and unzip it to Any directory.
Then select the decompressed JSLintNpp.dll file in Settings>>Import>>Import plug-in.
Then, and then nothing more...
Okay, you can see that the installation process is very simple, and of course the usage method is also very simple:
Open a js file at will, and then select Plugins>>JSLint>>JSLint Current File.
The JSLint window has appeared below the main window. At this time, you can see the errors and warnings given by jslint for this js code. (By the way, this file has a lot of errors~囧rz~It’s just too many errors).
##Plug-in>>JSLint>>option includes some options that can be configured according to your own needs. The good parts is the option suggested by Master Dao. Assume means assuming the running environment of the js code when checking the code. Generally, you can choose the first two items.The above is the detailed content of How to check errors in notepad. For more information, please follow other related articles on the PHP Chinese website!