Website Updates Feburary 2016: Syntax highlighting updates & more
I was going to do test some coursework, but I got distracted and ended up updating a few things around here instead. Here's the list:
- Rewrote build system for CSS / Javascript minification
- Replaced layzr.js with [be]Lazy.js
- Updated Prism the syntax highlighting library I use around here
The only change you should notice is the syntax highlighting here on my blog. All the other changes are behind the scenes (to take adventage of HTTP/2).
Prolog source code is highlighted now:
% Get the nth element
% From https://starbeamrainbowlabs.com/blog/article.php?article=posts%2F134-learning-prolog-lab-10.html
nthelement(0, [ Head | _ ], Head).
nthelement(N, [ _ | Tail ], Result) :-
N > 0,
NRecurse is N - 1,
nthelement(NRecurse, Tail, Result).
There are some nice additions to the syntax highlighting algorithm, too! The most noticeable are the line numbers. There are also some extra tooltips:
html, body { font-size: 100%; }
body
{
font-family: sans-serif;
background: linear-gradient(45deg, #b81831, #1a0871);
color: rgb(187, 28, 59);
}
#some-element
{
transform: rotate(86deg);
animation 3s ease-in-out slidein;
}
I will likely update this post a few more times as I continue to test the new configuration.