Skip to content

Latest commit

 

History

History
95 lines (81 loc) · 1.11 KB

css_and_alt_css.md

File metadata and controls

95 lines (81 loc) · 1.11 KB

comment pattern for CSS or AltCSS

Configuration

Create php-del.json in the root directory of the project

{
  "dirs": [
    "src"
  ],
  "extensions": [
    "php",
    "css",
    "sass",
    "scss",
    "stylus"
  ]
}

Usage

for CSS

/* php-del start flag */
.delete {
    display: none;
}
/* php-del end flag */

for Alt CSS

// php-del start flag
.delete {
    display: none;
}
// php-del end flag

Line delete

for CSS

.delete { 
    display: none; /** php-del line flag */
    color: red;
}

for Alt CSS

.delete { 
    display: none; // php-del line flag
    color: red;
}

Codes not covered

for CSS

.delete {
    /* php-del start flag */
    display: none;
    /* php-del ignore start */
    color: red;
    /* php-del ignore end */
    /* php-del end flag */
}

for Alt CSS

.delete {
    // php-del start flag
    display: none;
    // php-del ignore start
    color: red;
    // php-del ignore end
    // php-del end flag
}

File delete

for CSS

/* php-del file flag */

for Alt CSS

// php-del file flag