Add syntax highlight to docs and improve event docs