Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Javascript block comment inside HTML is incorrect

    General Discussion
    1
    1
    1674
    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.
    • Ghasan
      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
      Copyright © 2014 NodeBB Forums | Contributors