Syntax highlighting example

Previous Next

In this post we will have a look at some syntax highlighting abilities.

Here you can see a very simple C++ code snippet:

template <class type>
class Vector{

    private:
        type *data;
        size_t used;
        size_t capacity;

    public:
        Vector(size_t elemCount){

            data = new type[elemCount];
            capacity = elemCount;
            used = 0;
        }
        ~Vector(){
            delete[] data;
        }
};

The simplex support all the languages supported by Jekyll. For example, bash commands can be highlighted as well:

bundle exec jekyll serve --force-polling

You can also create your own highlighting palletes! See simplex readme.

The simplex also includes some simple buttons, which can be used for example at the end of the tutorial: