Extracted formatterPrintHeader() function from lexerMatchedHeader().