Add LESS support (.less)

Cheating slightly as it uses the CSS lexer, as pygments currently does
not have a dedicated less lexer. But I figure language recognition and
90% percent correct syntax highlighting is better than neither.
This commit is contained in:
Ben Scott
2013-01-07 15:27:01 +00:00
parent adc9246f66
commit 83ce189a82
2 changed files with 21 additions and 0 deletions

View File

@@ -731,6 +731,13 @@ Lasso:
- .lasso9 - .lasso9
- .ldml - .ldml
Less:
type: markup
group: CSS
lexer: CSS
ace_mode: less
primary_extension: .less
LilyPond: LilyPond:
lexer: Text only lexer: Text only
primary_extension: .ly primary_extension: .ly

14
samples/Less/screen.less Normal file
View File

@@ -0,0 +1,14 @@
@blue: #3bbfce;
@margin: 16px;
.content-navigation {
border-color: @blue;
color:
darken(@blue, 9%);
}
.border {
padding: @margin / 2;
margin: @margin / 2;
border-color: @blue;
}