DraftCode is available for the iPad but is a relatively expensive iPad app. Using a tab in iA Writer can highlight code blocks but doesn't have line numbers or syntax highlighting. Maybe someone knows of a good way to take notes as a programmer, and have a way to create code snippets.
Coda is currently on my iPad Pro. Below is a screenshot.
Coda is currently on my iPad Pro. Below is a screenshot.