support code snippet in entity