Well, if you don't do a whole lot of printing, it wouldn't be too inconvenient to use
BBEdit or
BBEdit Lite (now
discontinued). In the print dialog, select "BBEdit…" from the print options popup (the one that starts at "Copies & Pages." There you can select the option to print the code with page numbers.
Now, if "highlighted" refers to formatting, I guess that wouldn't work…