summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSamantha McVey <samantham@posteo.net>2016-12-31 15:25:24 -0800
committerSamantha McVey <samantham@posteo.net>2016-12-31 15:25:24 -0800
commitff3d2d1784cce6ff6b87f8ea47887aa8eee78036 (patch)
tree3b6a5b890a3daddbc5f3cd3e698709e00aab6eca
parent60bba321d3237a2fd1e9557e52e3e6f1ac3d977e (diff)
Set bf, chapel, d and dart to use the language's highlighting
Previously were using other languages with similar syntax, but now we have Pygments.
-rw-r--r--bf.html.markdown2
-rw-r--r--chapel.html.markdown2
-rw-r--r--d.html.markdown12
-rw-r--r--dart.html.markdown2
4 files changed, 9 insertions, 9 deletions
diff --git a/bf.html.markdown b/bf.html.markdown
index c8bbee61..9c603303 100644
--- a/bf.html.markdown
+++ b/bf.html.markdown
@@ -10,7 +10,7 @@ minimal Turing-complete programming language with just 8 commands.
You can try brainfuck on your browser with [brainfuck-visualizer](http://fatiherikli.github.io/brainfuck-visualizer/).
-```
+```bf
Any character not "><+-.,[]" (excluding quotation marks) is ignored.
Brainfuck is represented by an array with 30,000 cells initialized to zero
diff --git a/chapel.html.markdown b/chapel.html.markdown
index 9c1daf40..4619785e 100644
--- a/chapel.html.markdown
+++ b/chapel.html.markdown
@@ -10,7 +10,7 @@ In short, Chapel is an open-source, high-productivity, parallel-programming lang
More information and support can be found at the bottom of this document.
-```c
+```chapel
// Comments are C-family style
// one line comment
/*
diff --git a/d.html.markdown b/d.html.markdown
index edb3bff5..c682cfb5 100644
--- a/d.html.markdown
+++ b/d.html.markdown
@@ -6,7 +6,7 @@ contributors:
lang: en
---
-```c
+```d
// You know what's coming...
module hello;
@@ -28,7 +28,7 @@ D is actively developed by a large group of super-smart people and is spearheade
[Andrei Alexandrescu](https://en.wikipedia.org/wiki/Andrei_Alexandrescu).
With all that out of the way, let's look at some examples!
-```c
+```d
import std.stdio;
void main() {
@@ -73,7 +73,7 @@ We can define new types with `struct`, `class`, `union`, and `enum`. Structs and
are passed to functions by value (i.e. copied) and classes are passed by reference. Furthermore,
we can use templates to parameterize all of these on both types and values!
-```c
+```d
// Here, 'T' is a type parameter. Think '<T>' from C++/C#/Java.
struct LinkedList(T) {
T data = null;
@@ -136,7 +136,7 @@ is roughly a function that may act like an lvalue, so we can
have the syntax of POD structures (`structure.x = 7`) with the semantics of
getter and setter methods (`object.setX(7)`)!
-```c
+```d
// Consider a class parameterized on types 'T' & 'U'.
class MyClass(T, U) {
T _data;
@@ -209,7 +209,7 @@ functions, and immutable data. In addition, all of your favorite
functional algorithms (map, filter, reduce and friends) can be
found in the wonderful `std.algorithm` module!
-```c
+```d
import std.algorithm : map, filter, reduce;
import std.range : iota; // builds an end-exclusive range
@@ -237,7 +237,7 @@ is of some type A on any expression of type A as a method.
I like parallelism. Anyone else like parallelism? Sure you do. Let's do some!
-```c
+```d
// Let's say we want to populate a large array with the square root of all
// consecutive integers starting from 1 (up until the size of the array), and we
// want to do this concurrently taking advantage of as many cores as we have
diff --git a/dart.html.markdown b/dart.html.markdown
index fc7b220e..5027dc3e 100644
--- a/dart.html.markdown
+++ b/dart.html.markdown
@@ -11,7 +11,7 @@ its JavaScript sibling. Like JavaScript, Dart aims for great browser integration
Dart's most controversial feature must be its Optional Typing.
-```javascript
+```dart
import "dart:collection";
import "dart:math" as DM;