Introducing MicroLighter

(daverupert.com)

25 points | by tobr 1 hour ago

3 comments

  • ryanwhitney 3 minutes ago
    Actual demo is behind the first link: https://davatron5000.github.io/microlighter/
  • piratebroadcast 7 minutes ago
    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.
  • xigoi 1 hour ago
    Really cool! It’s a shame that the CSS Highlight API only allows changing the color and not the font.
    • SoftTalker 1 hour ago
      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.
    • crummy 24 minutes ago
      Or even setting bold would be nice.
      • capitainenemo 14 minutes ago
        yeah, although text-stroke and text-shadow probably work even better with fixed width code since it avoids changing line lengths.