Community
    • Login

    Javascript block comment inside HTML is incorrect

    Scheduled Pinned Locked Moved General Discussion
    1 Posts 1 Posters 1.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • GhasanG
      Ghasan
      last edited by

      Hi,

      Given the code below, when i select the Javascript block and click Block Comment from the context menu, it uses HTML-style comment instead.

      <html>
          <head>
          </head>
          <body>
              <p>My text.</p>
              <script type="text/javascript">
                  <!-- function foo() {
                      
                  } -->
              </script>
          </body>
      </html>
      

      Debug info:

      Notepad++ v6.8.8
      Build time : Dec 10 2015 - 01:11:37
      Path : C:\Program Files (x86)\Notepad++\notepad++.exe
      Admin mode : OFF
      Local Conf mode : OFF
      OS : Windows 10
      Plugins : ColorPicker.dll mimeTools.dll NppConverter.dll NppExec.dll NppExport.dll NppTextFX.dll PluginManager.dll XMLTools.dll

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors