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

Public Distribution of Dreamweaver CSS Syntax Validation Definition

Community Beginner ,
Dec 22, 2024 Dec 22, 2024

Copy link to clipboard

Copied

This is a property sheet for Dreamweaver's CSS editor to disable warnings related to custom properties and universal selectors.
I created this because the warnings are annoying.

Note: To enable custom properties, warnings for non-existent (undefined in CSS) properties will also be disabled.

For example, the following warnings (like "Expected RBRACE at line xxxxxxx") will be disabled:

:root {
    --cfw-body-font-color: #000; // ← Warning here
}

@keyframes blinking { // ← Warning here
    0% {
        opacity: 0.1;
        color: var(--cfw-theme-font-color); // ← Warning here
    }
    100% {
        opacity: 1;
        color: var(--cfw-color-red); // ← Warning here
    }
}

.ql-editor ul[data-checked=true] > li *, // ← Warning here
.ql-editor ul[data-checked=false] > li * { // ← Warning here
    pointer-events: all;
}

How to Configure (DW21.x)

Windows:

  1. Go to [Edit] > [Preferences] > [Syntax Checking].
  2. Select "CSS" in the "Root Set" and edit.

Mac:

  1. Go to [Dreamweaver] > [Preferences] > [Syntax Checking].
  2. Select "CSS" in the "Root Set" and edit.

Instructions:

Replace the settings with the following configuration:
Make sure to back up the original text before overwriting.

{
  "important": false,
  "adjoining-classes": false,
  "known-properties": false, // Allow unknown properties (enable custom properties)
  "box-sizing": false,
  "box-model": false,
  "overqualified-elements": false,
  "display-property-grouping": false,
  "bulletproof-font-face": false,
  "compatible-vendor-prefixes": false,
  "regex-selectors": true,
  "errors": false,
  "duplicate-background-images": false,
  "duplicate-properties": true,
  "empty-rules": false,
  "selector-max-approaching": false,
  "gradients": false,
  "fallback-colors": false,
  "font-sizes": false,
  "font-faces": true,
  "floats": true,
  "star-property-hack": false,
  "outline-none": false,
  "import": false,
  "ids": false,
  "underscore-property-hack": false,
  "rules-count": false,
  "qualified-headings": false,
  "selector-max": false,
  "shorthand": false,
  "text-indent": false,
  "unique-headings": false,
  "universal-selector": false, // Allow universal selector (*)
  "unqualified-attributes": true,
  "vendor-prefix": false,
  "zero-units": false
}

Disclaimer:

Use this at your own risk.


For JavaScript Warnings:

Instructions for disabling JavaScript syntax warnings can be found at the following link:
Dreamweaver JavaScript Syntax Validation Public Distribution

 

 

TOPICS
Code , Download install and licensing , Error , Interface , Performance

Views

28

Translate

Translate

Report

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
no replies

Have something to add?

Join the conversation