views:

141

answers:

1

How can I enable line numbers in CSS output if I am using SASS? I found an article but I didn't quite understand where to make the modifications

http://pivotallabs.com/users/damon/blog/articles/765-standup-04-07-2009-we-have-questions#comments

Could you help me?

+2  A: 

There's an option called :line_comments if you set this to true, Sass will place line numbers in your compiled output.

How to set this option depends on how you're using Sass. If it's in a Rails, Merb, or Rack application you can set Sass::Plugin.options[:line_comments] = true.

If you're using compass, set line_comments = false in your configuration file.

chriseppstein
OK, I added 'line_comments = false' in the config.rb file, but still no change... I am using compass, what am I doing wrong?
hex
In compass.config, sass_options = { :line_comments => true }
Kyle
There was a bug in compass that was recently fixed. If you can upgrade to 0.10.0.pre2 or greater it will work. Or you can do it kyle's way.
chriseppstein
It worked! Thank you kyle and chris, I will update when it will be a stable version.
hex