-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inline comments should be kept inline #235
Comments
@nex3 I asked @barraponto to file this after a thread on the compass mailing list. I think this is a case where the meaning of the comment is changed significantly when placed on the next line. Are you opposed to special casing this? |
I like the idea, but it would be moderately difficult to implement, since it involves somewhat non-local changes when compiling to CSS. It's pretty low priority. |
+1 |
@barraponto But why do you want to keep comments in final output? |
Some stylesheets are meant to be extended/overriden, regardless of the extender writing CSS or SCSS (or using any other preprocessor). Comments are nice documentation, particularly when you're reading a shared stylesheet. |
@barraponto I agree, I would like to see this implemented |
Also, following StyleDocco might require it. |
+1 for this one. Inline comments can be quite helpful. Some people don't necessarily want to minimize their CSS. And as @barraponto says, in shared stylesheets, documenting via comments is a nice thing to have. |
+1. A compiles css file needs inline comments for non SASS users. |
It would be nice to get an update on this, are there any plans to support inline comments? |
+1. Having them on second line kinda screws up the context of the line/comment meaning. I guess the alternative would be to put your inline comments on the line above, instead of after a property (for example): .myselector {
/* javascript will fix this: */
display: none;
} Not as nice though (in terms of documenting an uncompressed version of the code). I'm pretty sure LESS has this problem as well. |
+1. Any workaround for supporting inline comments? |
Many times, we want to code output also has a better note, in order to help you better read the CSS code. It is strongly recommended to support this demand. |
+1 |
I'm moving this issue to the new Ruby Sass repository because it's specific to Ruby Sass's implementation. Once it's there, I'm going to close it as "on ice" because Ruby Sass is deprecated and no additional features are planned for it. |
Sometimes comments are meant to be inline. Consider the following code:
It compiles to:
There are several use cases like this. Can it be done?
The text was updated successfully, but these errors were encountered: