Giter Club home page Giter Club logo

Comments (4)

Glavin001 avatar Glavin001 commented on August 24, 2024

Currently LESS is being beautified by the CSS beautifier of js-beautify.

See

case 'Sass':
case 'SCSS':
case 'LESS':
case 'CSS':
text = beautifyCSS(text, self.getOptions('css', allOptions));
beautifyCompleted(text);
break;

You should forward this issue over to the js-beautify project, and see what they say. There may be problems handling LESS, or in a much more fortunate case, may be a setting that provides better LESS support and resolves your issue. If it is a setting and Atom Beautify is restricting this, let me know and I can reopen this and make the necessary adjustments to optimize js-beautify for LESS.

Hope we can find a solution for you!

from atom-beautify.

Glavin001 avatar Glavin001 commented on August 24, 2024

It Pretty-Diff has been recommended by a contributor of LESS.js and switching Atom Beautify to prettydiff may resolve some LESS issues we have been having.

Could you try out http://prettydiff.com/ and let me know how well it works for you? If it works significantly better than js-beautify then we could migrate over in the future :).

/cc @mcdonnelldean

from atom-beautify.

mcdonnelldean avatar mcdonnelldean commented on August 24, 2024

@Glavin001 I tested Pretty-Diff using the sample LESS from my issue. The formatting looks perfect, I have also tested the sample from above and it looks good too.

@import "syntax-variables";
.editor-colors {
    background-color: @syntax-background-color;
    color: @syntax-text-color;
}
.editor {
    background-color: @syntax-background-color;
    color: @syntax-text-color;
    .wrap-guide {
        background-color: @syntax-wrap-guide-color;
    }
    .indent-guide {
        color: @syntax-indent-guide-color;
    }
    .invisible-character {
        color: @syntax-invisible-character-color;
    }
    .gutter {
        background-color: @syntax-gutter-background-color;
        color: @syntax-gutter-text-color;
        .line-number {
            &.cursor-line {
                background-color: @syntax-gutter-background-color-selected;
                color: @syntax-gutter-text-color-selected;
            }
            &.cursor-line-no-selection {
                color: @syntax-gutter-text-color-selected;
            }
        }
    }
}
a {
    display: block;
    font-size: 16px;
    line-height: @headerHeight;
    padding: 0px 15px;
    button {
        font-size: 16px;
    }
    &:link {
        color: @white;
        text-decoration: none;
    }
    &:visited {
        color: @white;
    }
    &:hover {
        color: @orange;
    }
    &.green {
        color: @green;
        &:hover {
            background-color: @green;
            color: @white;
        }
    }

from atom-beautify.

Glavin001 avatar Glavin001 commented on August 24, 2024

Excellent news! Thank you, @mcdonnelldean!

from atom-beautify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.