detect block brackets and highlight