The following code is from a aspx file of Vs 2019, I know I can add the comment "This a comment for aspx" in body, and it will be removed when I compile the project.
How can I add a comment for script? At present, I use /* This is comment for script */
, the project can work, but the /* This is comment for script */
can not be removed when I compile the project.
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="MasterPage.master.cs" Inherits="LinkTabs.MasterPage" %>
<!DOCTYPE html>
<html>
<head runat="server">
<title>Open multiple links in new tabs at once</title>
<script type="text/javascript">
/* This is comment for script */
$(function () {
});
</script>
</head>
<body>
<form id="form1" runat="server">
<%--
This a comment for aspx
--%>
<div id="container">
</div>
</form>
</body>
</html>