Comments in LESS
There are two types of comments in LESS: multi-line and single-line. Let's explore their features.
Multiline comments will be the same as in CSS:
/*
comment
*/
div {
font-size: 20px;
}
Or like this:
div {
font-size: 20px; /* comment */
}
LESS also adds single-line comments. These comments are more convenient because they are easier to write and they do not get into the compiled code. See the example:
div {
font-size: 20px; // comment commentary
}
Make two types of comments in your code. Compile the code. Look at the compilation result.