Community
    • 登入

    Javascript block comment inside HTML is incorrect

    已排程 已置頂 已鎖定 已移動 General Discussion
    1 貼文 1 Posters 1.9k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • GhasanG
      Ghasan
      最後由 編輯

      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 條回覆 最後回覆 回覆 引用 0
      • 第一個貼文
        最後的貼文
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors