add reference and check syntax highlight