Prism
300 posts

Prism
@prismjs
A lightweight, beautiful and extensible syntax highlighter, built with modern web standards. Spin-off from @dabblet, used by @alistapart, @smashingmag & MDN
In your code Katılım Temmuz 2012
7 Takip Edilen1.2K Takipçiler

@azamuddin91 Have you tried running it in worker mode? It won't make it faster, but it will run asynchronously.
English
Prism retweetledi

I implemented Prism on my website to get code highlighting... now that was easy. Thanks @prismjs team!
English

@adi_________ You can always search the repo and see which components come up. E.g. github.com/PrismJS/prism/…
looks like it's used in a bunch of langs, often as alias, but not in the ones you're using.
deleted seems to be used primarily in Diff
Agreed there should be a better way to show this!
English

@prismjs That's my problem, I didn't see them in any language until now, I used some CSS, some HTML, some JavaScript and some Shell. But no `.token.symbol` or `.token.deleted` yet. I only saw them in `prism.css`. So a little snippet with those tokens in ANY language would be great?
English

@prismjs thanks for sharing. I have a question. I want "data-output" to appear under the line from command-line. as seen in the attachment. but how? thanks..

English

@kylegawley Prism is an open source project. We're looking forward to your pull requests to improve it!
English

@prismjs Your documentation really sucks and is a nightmare to get setup (but I love the product)
English
Prism retweetledi

How to add & customize the @PrismJS code syntax highlighter for #CSS, #JavaScript, #SCSS & more to your existing @webpack theme bundle via @npmjs. ian.pvdindustrial.com/blog/adding-pr…
English
Prism retweetledi

Gosh that was easy. Added lovely syntax formatting to my pre elements using prismjs. No fuss. Thanks @prismjs!
prismjs.com
English
Prism retweetledi
Prism retweetledi

For any @prismjs users out there that also happen to develop for the @godotengine, I've written new language definitions for GDScript & the Godot Shading Language, so your posted code snippets will have proper highlighting.
dfaction.net/add_gdscript_a…
English

@zachphillips If you know regular expressions, that's all you need to write it! Take a look at the existing language definitions and the docs here: prismjs.com/extending.html
If you don't know JS, you can post a new issue, and maybe someone will make it!
English

@prismjs Any chance you guys could add a language definition for Fountain? (fountain.io)
If not, would it be pretty easy for me to do so?
English
Prism retweetledi

TIL there is a Chrome extension that highlights open CSS, JS etc files using @prismjs! chrome.google.com/webstore/detai…
Tried it and it works great!
Thanks @L3au_!
Sent a PR already :)
English
Prism retweetledi

Brilliant idea to improve code #accessibility, presented by @AmeerArmaly in @dagstuhl 18061: Turn method & class definitions into headings, so that they become skimmable!
Perhaps someone wants to implement this in @prismjs? I started an issue here:
github.com/PrismJS/prism/…
English

@PineappleBombs I was hoping for some more actionable feedback than "eye sores"?
English

@PineappleBombs Thanks for keeping it in mind?
Any specific things you'd like to see updated?
is it the design or the content?
English







