LESS-댓글
기술
주석은 사용자가 코드를 명확하고 이해할 수 있도록합니다. 코드에서 블록 스타일과 인라인 주석을 모두 사용할 수 있지만 LESS 코드를 컴파일하면 한 줄 주석이 CSS 파일에 나타나지 않습니다.
예
다음 예제는 LESS 파일에서 주석 사용을 보여줍니다.
<html>
   <head>
      <title>Less Comments</title>
      <link rel = "stylesheet" type = "text/css" href = "style.css" />
   </head>
   <body>
      <h1>Example using Comments</h1>
      <p class = "myclass">LESS enables customizable, 
      manageable and reusable style sheet for web site.</p>
      <p class = "myclass1">It allows reusing CSS code and 
      writing LESS code with same semantics.</p>
   </body>
</html>이제 style.less 파일을 작성 하십시오.
style.less
/* It displays the
green color! */
.myclass {
   color: green;
}
// It displays the blue color
.myclass1 {
   color: red;
}다음 명령을 사용하여 style.less 파일을 style.css 로 컴파일 할 수 있습니다.
lessc style.less style.css이제 위의 명령을 실행하십시오. 다음 코드 를 사용하여 style.css 파일을 자동으로 생성합니다.
style.css
/* It displays the
green color! */
.myclass {
   color: green;
}
.myclass1 {
   color: red;
}산출
위의 코드가 어떻게 작동하는지 보려면 다음 단계를 따르십시오.
- 위의 HTML 코드를 comments.html 파일. 
- 브라우저에서이 HTML 파일을 열면 다음 출력이 표시됩니다. 
