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
+3 -3
View File
@@ -15,7 +15,7 @@ Prints a single newline to the console.
Prints [object] to the console followed by a newline. If not already a string,
the object is converted to a string by calling `toString` on it.
:::dart
:::wren
System.print("I like bananas") // Prints "I like bananas".
### System.**printAll**(sequence)
@@ -23,7 +23,7 @@ the object is converted to a string by calling `toString` on it.
Iterates over [sequence] and prints each element, then prints a single newline
at the end. Each element is converted to a string by calling `toString` on it.
:::dart
:::wren
System.printAll([1, [2, 3], 4]) // Prints "1[2, 3]4".
### System.**write**(object)
@@ -31,7 +31,7 @@ at the end. Each element is converted to a string by calling `toString` on it.
Prints a single value to the console, but does not print a newline character
afterwards. Converts the value to a string by calling `toString` on it.
:::dart
:::wren
System.write(4 + 5) // Prints "9".
In the above example, the result of `4 + 5` is printed, and then the prompt is