The highlight library used by the highlight plugin has many features that are not accessible through the ikiwiki format directive. I've created a patch that exposes the line numbering option and opens the door to expose other options more easily.

The patch is in a github branch here:

I made a test/demo of the feature here:

And the updated plugin documentation is here: