Implements pattern highlight