For me, a little highlighting goes a long way. I don't like my code looking like a box of Crayola crayons. Throwing in multiple fonts doesn't sound helpful at all.
That seems like it could also mess with mouse selections if the text moved when selected. maybe even causing endless jitter.
I kinda wonder if "page scrolled 'cause X was selected" type data extraction attacks might play a slight role too. Although I suppose if you've managed to inject CSS all bets are off..
I'm not trying to be rude or unappreciative, but it's kinda crazy to me that the website itself doesn't contain the demo of the thing? I see sample code to implement it on my own site, but the site itself doesn't seem to have any highlighting or I highlighted some text and didn't see anything unusual? Maybe it's just me, maybe I'm missing something here? I'd like to see an example of what a thing does before straight up installing the code on my website.
That's what I assumed, but when I pasted this JS snippet from the blog post into the playground (ctrl+f "playground", selects JS) on the project page (https://davatron5000.github.io/microlighter/)
The highlighting looks completely different. I assumed the top-level commenter was being mildly obtuse, but it looks like they were (perhaps incidentally) correct
16 comments
[ 0.98 ms ] story [ 17.6 ms ] threadI kinda wonder if "page scrolled 'cause X was selected" type data extraction attacks might play a slight role too. Although I suppose if you've managed to inject CSS all bets are off..
OP probably should have put an example in this post. That said they look like... syntax highlighted code.