feat: replace all :::dart code fence markers with :::wren in documentation

Add a custom Pygments lexer plug-in for Wren syntax highlighting, update contributing docs with setup instructions for the lexer, and switch every `:::dart` annotation across all doc/site markdown files to `:::wren` so code examples render with the correct language grammar.
This commit is contained in:
Bob Nystrom
2015-09-22 14:59:54 +00:00
parent 2544aa74d8
commit 6bda720b71
34 changed files with 294 additions and 198 deletions
+16 -4
View File
@@ -228,20 +228,32 @@ footer {
}
}
// link hsl(200, 60%, 50%);
// hsl(210, 80%, 60%);
// Syntax highlighting.
.codehilite pre {
// Comments.
span.c1, span.cm { color: mix($code-color, $code-bg, 60%); }
// Keywords.
span.k, span.kd, span.kc { color: hsl(210, 80%, 60%); }
span.k, span.kd, span.kc, span.nb { color: hsl(200, 60%, 50%); }
// Names.
span.vg { color: hsl(180, 70%, 35%); }
span.vi { color: hsl(90, 80%, 35%); }
span.vc { color: hsl(130, 60%, 40%); }
// Numbers.
span.m, span.mi { color: hsl(90, 80%, 35%); }
span.m, span.mi, span.mf { color: hsl(30, 80%, 45%); }// hsl(90, 80%, 35%)
// Strings.
span.s, span.s2 { color: hsl(40, 80%, 50%); }
span.se { color: hsl(30, 80%, 50%); }
span.s, span.s2 { color: hsl(40, 80%, 45%); }
span.se { color: hsl(45, 80%, 50%); }
// Operators and punctuation.
span.o { color: hsl(200, 40%, 50%); }
span.p { color: mix($code-color, $code-bg, 80%); }
// Preprocessor directives.
span.cp { color: hsl(270, 40%, 60%); }