Sample Views of Code Highlight

Bash:

1
2
3
for i in {0..9}; do
echo "hello world"
done

C++:

1
2
3
4
5
6
int main() {
for (int i = 0; i < 10; ++i) {
std::cout << "hello world" << std::endl;
}
return 0;
}

Python3:

1
2
for i in range(10):
print("hello world")

Rust:

1
2
3
for x in 0..10 {
println!("hello world");
}

diff:

1
2
- before
+ after