Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to comment multiple lines of html code?

Tags:

html

sed

Here is my html code.

<link rel="stylesheet" type="text/css" href="/common/css/daterangepicker-bs2.css">
        <link rel="stylesheet" type="text/css" href="/common/css/multiselect.css"/>
        <link rel="stylesheet" type="text/css" href="/common/app/css/tab-styles.css">
        <link rel="stylesheet" type="text/css" href="/common/app/css/resumable.css">
        <link rel="stylesheet" type="text/css" href="/common/app/css/connectwise.css">
        <link rel="stylesheet" type="text/css" href="/app/css/chat.css">
        <link rel="stylesheet" type="text/css" href="/common/app/css/remote.css">
        <link rel="stylesheet" type="text/css" href="/common/app/css/screen.css">

I need to comment from <link rel="stylesheet" type="text/css" href="/common/app/css/connectwise.css"> to <link rel="stylesheet" type="text/css" href="/common/app/css/remote.css">

like image 261
santhosh Avatar asked Nov 06 '17 13:11

santhosh


1 Answers

Use this to comment in HTML | source

<!-- Comments go here -->

So you have:

<!-- <link rel="stylesheet" type="text/css" href="/common/css/daterangepicker-bs2.css">
<link rel="stylesheet" type="text/css" href="/common/css/multiselect.css"/>
<link rel="stylesheet" type="text/css" href="/common/app/css/tab-styles.css">
<link rel="stylesheet" type="text/css" href="/common/app/css/resumable.css">
<link rel="stylesheet" type="text/css" href="/common/app/css/connectwise.css">
<link rel="stylesheet" type="text/css" href="/app/css/chat.css">
<link rel="stylesheet" type="text/css" href="/common/app/css/remote.css">
<link rel="stylesheet" type="text/css" href="/common/app/css/screen.css"> -->

EDIT: Sorry did not realize it was CSS only. Fixed my answer.

EDIT 2: I've looked into your question again and noticed that Pete removed an important question of yours, which part you wanted to cross out. The code below should be exactly what you want.

    <link rel="stylesheet" type="text/css" href="/common/css/daterangepicker-bs2.css">
    <link rel="stylesheet" type="text/css" href="/common/css/multiselect.css"/>
    <link rel="stylesheet" type="text/css" href="/common/app/css/tab-styles.css">
    <link rel="stylesheet" type="text/css" href="/common/app/css/resumable.css">
    <!-- <link rel="stylesheet" type="text/css" href="/common/app/css/connectwise.css">
    <link rel="stylesheet" type="text/css" href="/app/css/chat.css">
    <link rel="stylesheet" type="text/css" href="/common/app/css/remote.css">
    <link rel="stylesheet" type="text/css" href="/common/app/css/screen.css"> -->
like image 104
Mik3NL Avatar answered Sep 25 '22 23:09

Mik3NL