Webbrowser console.log is for output, so you can add in checks to putting output. so in your script, when console.log("Hello world!"); is inserted in to any part of the script, as soon as the script reaches that, the output will be Hello world! in the console.log (F12 open / close)
Notepad++ is an editor, it allows formatting and syntax highlights keywords.