Giter Site home page Giter Site logo

Spaces inside comments about csscomb.js HOT 4 CLOSED

mishanga avatar mishanga commented on May 28, 2024
Spaces inside comments

from csscomb.js.

Comments (4)

kizu avatar kizu commented on May 28, 2024

Some thoughts:

There should be a way to set different values for this option for block-level and inline-level comments, or even differentiate between block-level comments outside the declarations and those inside of them. So, those are different types of comments:

/* Foo */
.a {
    width: 10px;

    /* Bar */
    height: 10px; /* Baz */
}

Maybe we should if the comment contains the commented code instead of text, and give a way to treat those comments differently.

We should allow to use not only white-space characters inside the comments value, there are a lot of people who use different styles of block comments, like

/**
 * Hello, world!
 */

/*------------------------------------*\
    Hello, world!
\*------------------------------------*/

/* Hello, world!
---------------------------------------- */

etc.

As shown above (and in example in the text of the issue), there should be a way to set the indentation for the block-level comments, and it could consist of other characters as well.

from csscomb.js.

mishanga avatar mishanga commented on May 28, 2024

OK, accepted.

from csscomb.js.

necolas avatar necolas commented on May 28, 2024

Being able to configure space / new lines before/after comments would also be nice (might overlap with those settings for rules)

from csscomb.js.

tonyganch avatar tonyganch commented on May 28, 2024

Closing this issue as a wontfix.

from csscomb.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.