Callback to call each time parsing and highlighting finishes

Useful for cases when you need to know when parsing and highlighting is
done, so you can do whatever you need with the resulting text, like in
my case printing the document.