Prism: NodeJS using Prism on the server-side

Created on 3 Dec 2020  路  11Comments  路  Source: PrismJS/prism

NodeJS appears to be using Prism on the server side: view source e.g. here and look at the class names. Is that enough to feature it?

good first issue help wanted website

Most helpful comment

This is HUGE: Google's web.dev uses Prism!! Evidence: https://web.dev/publish-modern-javascript/

We should definitely list this on the homepage!

All 11 comments

They are using Prism. Here's the build script of the website. They use Prism via a plugin for their markdown render.

I think that's enough to feature it.

Great!
In general, I suspect there are many big websites using Prism that we have not featured. I mean, we have 3 million weekly downloads on npm alone!
I wonder how we could find them...

Look at https://www.nerdydata.com/

Search for prism.js, prism.min.js, or prismjs.

I often "get a feel" for it when I see the code blocks on a website, somehow.

Note that NodeJS still uses HighlightJS in the API docs.

From a quick tour I just did on some tech websites (in quite a random order):

Tailwind CSS uses Prism too (at least the tokenizer).

Preact (https://github.com/preactjs/preact-www/tree/master/src/components/code-block)

Svelte (https://github.com/sveltejs/svelte/blob/master/site/src/utils/highlight.js#L2)

Font Awesome

NextJS

Gatsby

GraphQL

Apollo

Redux

Express

Deno (https://github.com/denoland/deno_website2/blob/master/components/CodeBlock.tsx#L4)

Storybook

Laravel

And probably many many more. :)

EDIT : Styled Components (https://github.com/styled-components/styled-components-website/blob/master/utils/prismTemplateString.js),
Emotion,
most likely Prettier (even though there is some hljs classes still in there),
Autoprefixer (https://github.com/autoprefixer/autoprefixer.github.io/blob/master/src/highlight.js),
David Walsh blog...

We should feature all these sites in the homepage! At least the big ones!

I think if we decide to feature more websites on the homepage, we'll need to revisit the design though, cause we can't spam a lot more logos as huge as they are right now haha.

Here are my findings.

Docs for frameworks and libraries

Site generators

Text editors

PaaS & other sites

refractor. 2M downloads weekly.

I wonder if we should have a longer text-only list of websites using Prism, in addition to the bigger ones that we list with logos.

I wonder if we should have a longer text-only list of websites using Prism

I wonder. For most of those sites, libraries, and frameworks, using Prism is probably just an implementation detail, so I would expect a text-only list to change "frequently" (maybe every month or so depending on the length of the list) and I wouldn't want to check and update it manually.

But I am very much for diversifying and extending our current list of popular sites.


Maybe another site to add to the list:

This is HUGE: Google's web.dev uses Prism!! Evidence: https://web.dev/publish-modern-javascript/

We should definitely list this on the homepage!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

huweihuang picture huweihuang  路  6Comments

donnieflorence picture donnieflorence  路  4Comments

finnianr picture finnianr  路  4Comments

timehat picture timehat  路  4Comments

neginbasiri picture neginbasiri  路  8Comments