Testing syntax highlighting

Table of contents

  1. Languages
    1. Rust
    2. Haskell
    3. TypeScript
    4. Python
    5. C
    6. JavaScript
    7. C++
    8. CSS

Languages

In no particular order

Rust

fn main() -> i32 {
    7
}
fn main() -> i32 {
    7
}

Haskell

main :: IO ()
main = println "Hello world!"
main :: IO ()
main = println "Hello world!"

TypeScript

async function thingy(): Promise<number> {
  return 7;
}
async function thingy(): Promise<number> {
  return 7;
}

Python

def main():
    print(f"I am cool {7}")
def main():
    print(f"I am cool {7}")

C

#include <stdio.h>

int main(int argc, char** argv) {
    printf("Hello world!\n");
    return 0;
}

JavaScript

async function thingy() {
  return 7;
}
async function thingy() {
  return 7;
}

C++

#include <iostream>

int main(int argc, char** argv) {
    std::cout << "Bad" << std::endl;
    return 0;
}
#include <iostream>

int main(int argc, char** argv) {
    std::cout << "Bad" << std::endl;
    return 0;
}

CSS

.bad {
  background-color: #454545;
}