Hey folks, this has been implemented in embeds now!
The help article describing customizing embeds has been updated, but in short, add a comma-separated list of lines to highlight to the highlights url parameter: &highlights=2,4,6,8 will highlight lines 2, 4, 6, and 8 of the selected source file.