snippet partial creation and readonly code display