Closed dbaynard closed 5 years ago
@dbaynard I'm entirely happy to entertain a PR for this, I can imagine how it would be useful.
I've done the relatively straightforward part of this, but it looks like doing it all will require significant changes to the core types. commenting
runs the writer, modified the Rule
s, and then replaces them, which seems a little odd.
I'd eventually like to tackle
Property
constructor).That sound ok?
If you're still planning on adding that, can you elaborate in a new issue and close this?
I do not still intend to add that — I'll close.
Sometimes it is useful for output css to have comments. Also is is occasionally useful to have commented out css.
It would be good to have one function that adds a comment.
It may be useful to specify during pretty-printing how this comment should be appended to the previous element (same line, end of line).
It would also be helpful to have a function which comments out code, as (for example) this then becomes visible (with strikeout) in chrome developer tools.
Names to be bikeshedded.
I can implement if it would be valuable (just not for another few weeks).