Adds code directive to rst with numbered lines