Skip to main content
Known Participant
November 13, 2016
解決済み

Disabling CSS in code view....Quick key?

  • November 13, 2016
  • 返信数 1.
  • 1089 ビュー

Hi,

I am curious if there is a shortcut to disable CSS rules by highlighting the text (rule) from the CSS page (code view).  I know you can disable rules from the properties panel by hitting the disable button... I think it would be more intuitive to highlight a rule in code view and hit a quick key to toggle it on and off..

Thanks to anyone who helps,

Gary

このトピックへの返信は締め切られました。
解決に役立った回答 Nancy OShea

Use code comments to disable highlighted rules.

     /*this is a CSS comment*/

     <!--this is an HTML comment-->

See screenshots below from CC 2017:

BEFORE COMMENT:

AFTER COMMENT ADDED:

Does that help you?

返信数 1

Nancy OShea
Community Expert
Nancy OSheaCommunity Expert解決!
Community Expert
November 14, 2016

Use code comments to disable highlighted rules.

     /*this is a CSS comment*/

     <!--this is an HTML comment-->

See screenshots below from CC 2017:

BEFORE COMMENT:

AFTER COMMENT ADDED:

Does that help you?

Nancy O'Shea— Product User & Community Expert
Taffypro作成者
Known Participant
November 14, 2016

I wonder if there is a way to assign that to a key command,

Thanks