NikhilWanpal NikhilWanpal - 1 year ago 123
HTML Question

How can I add autocomplete in notepad++ for javascript in an .html file?

Notepad++ does auto-complete for html and also for JavaScript. but the auto-completion depends on file extension.html file supports completion for html only. Is there a way to enable auto-completion for javascript in the script tag of an html file? I mean, other than copying the auto-completion keyword list from "javascript.xml" to "html.xml" files...

Ben Ben
Answer Source

You would either need to

  • write your own lexer plugin (may possibly have an issue of conflicting with the internal HTML lexer), or
  • modify the source and compile your own notepad++/Scilexer.dll

Both are not quick undertakings.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download