home.social

#prismjs — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #prismjs, aggregated by home.social.

  1. @Una @argyleink Awesome! We no longer need Custom Highlight API nor nor for syntax highlighting thanks to @gdc!

  2. @Una @argyleink Awesome! We no longer need #CSS Custom Highlight API nor #PrismJS nor #HighlightJS for syntax highlighting thanks to @gdc!

  3. @Una @argyleink Awesome! We no longer need #CSS Custom Highlight API nor #PrismJS nor #HighlightJS for syntax highlighting thanks to @gdc!

  4. @Una @argyleink Awesome! We no longer need #CSS Custom Highlight API nor #PrismJS nor #HighlightJS for syntax highlighting thanks to @gdc!

  5. @Una @argyleink Awesome! We no longer need #CSS Custom Highlight API nor #PrismJS nor #HighlightJS for syntax highlighting thanks to @gdc!

  6. Noticing that the popular Okaidia color theme I’m using for PrismJS to style code blocks on my website has text color contrast issues. Does anyone know of a code block theme that passes WCAG for text color contrast? Preferably one that is easily used with Prism?

    #accessibility #a11y #programming #prismJs #color #webDev

  7. @blueset came here to say exactly this. Never occurred to me before that I should have the ability to set, not just the colour, but the actual font for each token. It’ll be interesting to see what can be made of this in #PrismJS themes.

  8. @eleventy that's great, had no idea. Does that mean they are supported in #prismjs too?

  9. Just hit publish on a new post about adding a new #PrismJS language for @eleventy syntax highlighting:

    joesahlsa.dev/blog/custom-lang

  10. Wow, #PrismJS, the syntax highlighter I started in 2012 after being fed up with the aesthetics and ergonomics of the existing options, has exceeded 1 BILLION total npm downloads!
    npm-stat.com/charts.html?packa

    We couldn’t have gotten there without Prism’s fantastic maintainer team (Golmote, Michael Schmidt, James DiGioia, Jason Kurian), Prism’s 375 contributors, and ecosystem of almost 4k dependent projects.
    Thank you all, you rock!

  11. didn't have syntax highlighting with yet, so I made a preliminary test one and integrated it into my pastebin. Now that this has been corrected, I can continue writing Gleam code. :D

    Demo file: nicd.gitlab.io/t/#BH3$Mma?_U_S

    The grammar itself: nicd.gitlab.io/t/#DxgDf?TuwTR3