View Single Post
Old 02-04-2024, 06:03 AM   #1
clairvoyant
Junior Member
clairvoyant began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2021
Device: Kobo Libra H2O
Can't highlight text that contains code syntax

I'm reading programming books on my Kobo Libra H2O and having issues with the highlighting. Whenever I highlight a sentence with a programming/code syntax, my highlight disappears when I click somewhere else on the page.

At first, I only noticed it on code blocks and thought it was related to <pre> blocks, although I'm not sure if ebooks contain those. Then I stumbled upon this sentence that had the same issue:

"However, while id and type should be familiar from native HTML, htmlFor might be new to you."

I can't tell if these keywords just have a different font or if they are using some other hidden markup. I played around with the reading font on the device and got it to show the whole sentence in the same font. It inhibits the reading experience a bit since I can't distinguish the keywords but solves the highlighting issue I had with that specific sentence.

Unfortunately, the code blocks still have the same issue.

Is there any workaround to this?
clairvoyant is offline   Reply With Quote