05-09-2011, 05:01 PM | #1 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
comment out lines in CSS
back in my conventional programming days, most languages had a way to comment out certain lines, rendering them ineffective.
e.g. in BASIC, you put REM at start of line ( i think - i'ts been a long time...) is there any way to do something line that in css ? say there's a font family or RGB setting that I don't think I want to keep but I don't want the hassle of copying it to another file & I know that I won't remember it once it's gone. can I put something at start of definition line that will cause it to be ignored ? but will keep the code to hand if I ever want to re-instate it. |
05-09-2011, 05:32 PM | #2 |
Wizard
Posts: 2,251
Karma: 3720310
Join Date: Jan 2009
Location: USA
Device: Kindle, iPad (not used much for reading)
|
Within CSS, you can use c-style comments:
/* this is a comment */ Slash asterisk to open, asterisk slash to close. |
Advert | |
|
05-10-2011, 02:10 AM | #3 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
excellent thanks - using it already.
pity it's not a start of line only tweak, as writing a regex to wrap those character pairs around , say , every font-family definiion will be a challenge to compose - LOTS of escape characters! |
05-10-2011, 06:54 AM | #4 | ||
Guru
Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
cybmole, I haven't tested, but you may be able to search for
Quote:
Quote:
|
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
epub CSS versus "Regular" CSS | konrad | ePub | 4 | 02-18-2011 10:29 AM |
css pseudo elements and adjacent combinators in extra css? | ldolse | Calibre | 2 | 12-21-2010 06:09 PM |
PDF Comment and Question | timezone | iRex | 8 | 08-15-2008 11:05 AM |
Gizmodo - anyone have comment privilege there? | oliverbogler | iRex | 9 | 07-24-2006 11:19 AM |
Jim's comment on Turcic.com :) | Alexander Turcic | Lounge | 0 | 02-19-2003 04:22 AM |