How to add autocomplete to notepad ++ for javascript in .html file?

Notepad ++ does autocomplete for html as well as for JavaScript. but autocomplete depends on the extension.html file; the file supports html-only completion. Is there a way to enable javascript autocomplete in the script tag of the html file? I mean, besides copying the list of autocomplete keywords from "javascript.xml" to the files "html.xml" ...

+3
source share
3 answers

You will need

  • write your own lexer plugin (there may be a problem with a conflict with the internal HTML lexer) or
  • change the source code and compile your own notepad ++ / Scilexer.dll

Both are not quick beginnings.

0

. , "". - .

0

- 2

  • JavaScript ( )
  • HTML ( / Javascript <script> </script>)

( ) - 2 : JavaScript , .

, Notepad ++ - , , JSLint, emmet, nppFTP, indent by fold... (Obsidian): .;)

0
source

Source: https://habr.com/ru/post/1792420/


All Articles