In the nature theme, the `.viewcode-block:target` - representing a code snippet targeted by an anchor or link - is highlighted with a different background color. This is not the case in Furo at the moment.
My initial attempt at adding highlighting used the following CSS code:
@media screen and (prefers-color-scheme: dark) { .viewcode-block:target { background-color: #131313; border: 1px solid #666; } .viewcode-block .viewcode-back { color: #3facad; } } @media screen and (prefers-color-scheme: light) { .viewcode-block:target { background-color: #e3e3e3; border: 1px solid #a0a0a0; } }
However, this code seems to add incorrect highlighting as indicated in this comment by @Xqt
This task is about finding a better way to do this.