Code annotations for snippets

Now that code block annotations are supported (and soon to be non-experimental?), has there been any discussion on bringing that functionality over to snippets? It would be nice to get the benefits of compiled example code in docs while still being able to highlight lines. I understand some annotations may not make sense for snippets, such as line numbers since that doesn't play nicely with slices, but overall the feature does seem useful for snippets.

1 Like

No discussion that I've seen (or spurred), but I love the concept of what that could enable!

I'd imagine it would be more straightforward in the DocC code to add to the structured setup that a directive like @Snippets provide, although we'd clearly need to take some care to wire it through to the DocC-Render and ensure the intermediate JSON data structure is sorted properly. (I'm saying this off the top of my head - I haven't dug in and really explored how to tackle this)