Currently you can define as many preservation rules as you like, but it
requires a bit of extra work.
I am thinking a good addition would be to create some simple syntax that would
tell HTML compressor to skip following block. Currently I am leaning towards:
<!-- {{{ -->
- Anything inside will be preserved, with the highest priority after user defined blocks
- Number of spaces around {{{ could be zero or more
- These comments themselves will be always removed ignoring comment removal setting
<!-- }}} -->
Making it an HTML comment would ensure that having it on a page wouldn't break
anything even if HTML compressor is not applied to the page.
Now a few questions for you:
- What do you think about such syntax? Could it interfere with any other
scripting language?
- Should this syntax have the higher priority over user defined rules or not? I
think user defined rules still should be at the top as if you went through the
trouble of defining them then you should know what you are doing.
- Should these comments be treated as regular comments during compression and
removed with the rest of the comments if set so, or always removed?
Original issue reported on code.google.com by serg472@gmail.com on 10 Apr 2011 at 4:56
Original issue reported on code.google.com by
serg472@gmail.com
on 10 Apr 2011 at 4:56