Add popup code viewer to patterns page