Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directives to Ignore or Preserve sections for CSS #813

Open
Hirse opened this issue Nov 19, 2015 · 3 comments
Open

Directives to Ignore or Preserve sections for CSS #813

Hirse opened this issue Nov 19, 2015 · 3 comments

Comments

@Hirse
Copy link
Contributor

Hirse commented Nov 19, 2015

This is a feature request to add directives to ignore or preserve sections in CSS as it is currently possible in JavaScript.

This came up as a request in the Brackets Beautify extension:
brackets-beautify/brackets-beautify#187

@bitwiseman
Copy link
Member

Probably not to difficult to port the code from #384 for the ignore that also skips parsing. The css beautifier doesn't parse.

@julkue
Copy link

julkue commented Mar 10, 2016

👍

Example SCSS (Compass):

$primaryFont: "My font name";
@include font-face(
    $primaryFont,
    font-files(
        "my_font_name.ttf",
        "my_font_name.woff",
        "my_font_name.svg"
    ),
    "my_font_name.eot"
);

will be converted into:

$primaryFont: "My font name";
@include font-face( $primaryFont, font-files( "my_font_name.ttf", "my_font_name.woff", "my_font_name.svg" ), "my_font_name.eot" );

Using /* beautify ignore:start */ should be possible.

@bitwiseman
Copy link
Member

@Hirse
ignore is supported in v1.9.0-beta1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants