NikhilWanpal NikhilWanpal - 2 months ago 13
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

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.