Comments on: Using the Custom Highlight API https://frontendmasters.com/blog/using-the-custom-highlight-api/ Helping Your Journey to Senior Developer Wed, 27 Aug 2025 19:13:39 +0000 hourly 1 https://wordpress.org/?v=6.9 By: Robert https://frontendmasters.com/blog/using-the-custom-highlight-api/#comment-38386 Wed, 27 Aug 2025 19:13:39 +0000 https://frontendmasters.com/blog/?p=6686#comment-38386 That is good news about Firefox, though I’m not seeing it able to add a text-decoration:underline to the highlight:

https://codepen.io/robertwbradford/pen/RNwaEEj

I have also noticed an issue with Safari. When a background color is applied to the highlight and there is enough line spacing to create white space between lines when text wraps, Safari does not render the white space.

]]>
By: Bramus https://frontendmasters.com/blog/using-the-custom-highlight-api/#comment-36997 Wed, 13 Aug 2025 13:55:13 +0000 https://frontendmasters.com/blog/?p=6686#comment-36997

André Ruffert has already taken that idea and ran with it […]

In case folks want to know more, the core of the logic is described in https://brm.us/syntax-highlighting – which André used as the base for this wonderful component 🙂

]]>