-
Notifications
You must be signed in to change notification settings - Fork 143
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
Add LESS language support #101
Comments
@calvinjuarez Perhaps you're looking for |
@ulyssecarion Pardon? Would that make it possible for GitHub to highlight blocks of code labeled 'less'? Because that's what I'm looking to do. |
@calvinjuarez Oh, I misunderstood you. I haven't found any less parsers, but there is a SCSS parser. Would that do it for you? It's definitely not perfect, though. Here is what the Scss parser produces when faced with some LESS (which I got from lesscss.org): @base: #f938ab;
.box-shadow(@style, @c) when (iscolor(@c)) {
-webkit-box-shadow: @style @c;
-moz-box-shadow: @style @c;
box-shadow: @style @c;
}
.box-shadow(@style, @alpha: 50%) when (isnumber(@alpha)) {
.box-shadow(@style, rgba(0, 0, 0, @alpha));
}
.box {
color: saturate(@base, 5%);
border-color: lighten(@base, 30%);
div { .box-shadow(0 0 5px, 30%) }
} If you're limited to strictly GitHub, I think that's the best you can do (though you might want to try both Perhaps you may want to voice your interest for a Less lexer in this Pygments issue on Bitbucket. Hope this helps. |
What would I have to do to get this to happen?
The text was updated successfully, but these errors were encountered: