Label anchors placed at start of preceding long-comment or local vars table, rather than at the instruction line
Another very minor enhancement request, but then I'm supposing that the implementation for this one might also be very straightforward.
When clicking on a label link within an HTML disassembly, browsers typically jump to the location in a way that leaves the anchored line at the very top of the browser window. It'd be great if label anchors were at the top of any long-comment above the instruction, instead of directly at the instruction, so that sharing a link to a particular bit of code will show the leading comment straightaway, rather than the link's recipient having to "just know" that they should scroll up a little if they wish to view a comment's synopsis of the routine, etc.
Example: if you click this link to the "Expression" routine within my Family BASIC disassembly project, you don't immediately understand that there may well be a user-friendly comment directly above the line shown at the top of the browser (on Google Chrome, at any rate).
I have a number of these sorts of links into the disassembly from my project's Family BASIC Internal Details page, and someone following these links won't necessarily understand this aspect of browsing SourceGen-generated HTML disassemblies.
Thanks for this immensely useful tool!
It's a little awkward because the export is generated in a single pass through the list, but I think I could use the start of a long comment as a trigger to see if there's a label on the next line of code, and have it peek ahead.
This works for "external" links, but if you're just clicking around the file you might want it to go to the label you clicked on rather than the top of the 50-line comment header that precedes it. I'm wondering if we want different HTML targets for labels and for block comments that come before labels.
Personally I think I'll always want it to go to the long-comment, but I can certainly see how someone might not. Separate anchor targets might be the better solution.