Ridge marking by deposition of a chemical substance