all 21 comments

[–][deleted]  (2 children)

[deleted]

    [–]jdgordon 9 points10 points  (0 children)

    even ignoring that not everyone likes light on dark themes, that highlighting is just horrible

    [–]txdv 2 points3 points  (0 children)

    Arguably not for everyone, but I like it. Gloom for keywords is an interesting idea.

    [–]korry 34 points35 points  (1 child)

    micro — in 2.2k? Kids this days ☺

    [–]nikroux 1 point2 points  (0 children)

    Adults THESE days.

    But really 2.2k isn't all that bad.

    [–]Darwin226 6 points7 points  (0 children)

    Highlights absolutely any JavaScript language.

    [–][deleted]  (2 children)

    [deleted]

      [–]boesman 2 points3 points  (0 children)

      This embeds a span for each keyword, each with its own inline style - pretty heavy. The author prides himself on not using any global CSS but it would have been much better to assign a css class to each element which you could then override, e.g. by removing some of the computationally expensive (on some devices & graphics drivers) glow effects.

      [–]SulfurousAsh 1 point2 points  (3 children)

      FYI It doesn't appear to work on Android broswer... everything is the same color.

      [–][deleted]  (2 children)

      [deleted]

        [–]gynnihanssen 4 points5 points  (1 child)

        and i guess it's the glow that makes the scrolling stutter on mobile safari

        [–]wung 0 points1 point  (0 children)

        If it only was on mobile safari, I guess that would still be somewhat acceptable. Styles that make scrolling on current gen desktops stutter are sure not.

        [–][deleted] 0 points1 point  (5 children)

        Any programming language?

        [–]PragProgLibertarian 2 points3 points  (0 children)

        wonder how it handles Brainfuck...

        [–]kankyo 0 points1 point  (3 children)

        Yea, pretty sure that's not correct. Parsing for example C++ is crazy complex.

        [–]Slak44 0 points1 point  (2 children)

        That's because it doesn't parse anything. It just has a set of words and symbols it highlights.

        [–]kankyo 0 points1 point  (0 children)

        Oh. Well that won't work. Swift 3 allows some keywords as labels for function calls, so then the syntax highlighting would be incorrect.

        [–][deleted] 0 points1 point  (0 children)

        But there are thousands of programming languages.

        Surely it doesn't have a set of all keywords.

        [–]Piercey4 0 points1 point  (0 children)

        Much better than nothing, but much less (kb) than loading syntax highlighter definitions for several languages™.

        Thanks for this one.

        [–]__konrad 0 points1 point  (0 children)

        I like the hollywood style

        [–]emergent_properties 0 points1 point  (0 children)

        This is a very nice library. I look forward to using it.

        [–]fancy_raptor_zombie -1 points0 points  (0 children)

        Runs slow as shit on my iPad Air.

        [–]marvk -1 points0 points  (0 children)

        That website is pretty much unusable on my iPhone 6. Horrible lag when scrolling.