PrismJS / prism

Lightweight, robust, elegant syntax highlighting.
https://prismjs.com
MIT License
12.11k stars 1.27k forks source link

NodeJS using Prism on the server-side #2667

Open LeaVerou opened 3 years ago

LeaVerou commented 3 years ago

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?

RunDevelopment commented 3 years ago

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.

LeaVerou commented 3 years ago

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...

edukisto commented 3 years ago

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

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

Golmote commented 3 years ago

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):

And probably many many more. :)

EDIT:

LeaVerou commented 3 years ago

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

Golmote commented 3 years ago

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.

edukisto commented 3 years ago

Here are my findings.

Docs for frameworks and libraries

Site generators

Text editors

PaaS & other sites

edukisto commented 3 years ago

refractor. 2M downloads weekly.

LeaVerou commented 3 years ago

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.

RunDevelopment commented 3 years ago

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:

LeaVerou commented 3 years ago

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

We should definitely list this on the homepage!

rumkin commented 3 years ago

Official React site uses Prism: https://github.com/reactjs/reactjs.org/blob/master/package.json.

RunDevelopment commented 3 years ago

Another one we could mention: v8.

SiddharthShyniben commented 3 years ago

There's CSS-Tricks too.

LeaVerou commented 3 years ago

There's CSS-Tricks too.

We already list that on the homepage.

edukisto commented 2 years ago

@mui/material is a trending React UI library. The project team uses Prism on their site [1; 2].