Demos various syntax highlighting.

C++

1
2
3
4
5
6
7
#include <iostream>
int main()
{
std::cout << "Hello world!\n";
return 0;
}

Java

1
2
3
4
5
6
7
8
package java;
public class Java {
public static void main(String[] argv) {
String string = "Hello";
System.out.println(string + " Java");
}
}

JavaScript

1
2
3
function foo() {
console.log('Hello Javascript!');
}

Go

1
2
3
4
5
import "fmt"
func main() {
fmt.Println("Go Go, World!")
}

CSS

1
2
3
4
5
6
7
8
.article-entry .gist {
margin: 0 -20px;
border-style: solid;
border-color: #ddd;
border-width: 1px 0;
background: #2d2d2d;
padding: 15px 20px 15px 0;
}

Gist

Comments