added code snippet exporting