Visual code editor for touch-based devices