Code snippets in a blog post

SimuRec Organizers · August 12, 2019

This post demonstrate the use of code snippets in the theme. The code snippets are powered by Pygments and the code theme that is been used in Reverie is called Draula.

This is a raw snippet:

hello world
This is a text snippet

This is a PHP snippet:

    echo 'Hello, World!';

This is a JavaScript snippet:

const add = (a, b) => a + b
const minus = (a, b) => a - b

console.log(add(100,200))  // 300
console.log(minus(100,200))  // -100

This is a Python snippet:

def say_hello():
    print("hello world!")

say_hello()   // "hello world!"

Twitter, Facebook