How highlighters work
A highlighter marks text with a bright, see-through ink. The colour is strong enough to catch your eye when you skim the page later, but light enough that the words underneath stay easy to read.
Most highlighter ink glows under daylight because it turns invisible ultraviolet light into visible colour. That's why yellow and green look almost brighter than the white paper around them.