Save highlights to file when they are toggled.