Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Explorer ,
Nov 13, 2016 Nov 13, 2016

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

983
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 13, 2016 Nov 13, 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?

Translate
Community Expert ,
Nov 13, 2016 Nov 13, 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 & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 13, 2016 Nov 13, 2016
LATEST

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

Thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines