Prism

300 posts

Prism

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
Lauri Lännenmäki
Lauri Lännenmäki@laurilllll·
I'm a fan of your site telmo.im @telmo 👍 I like the _content and style_ 😎 Are the **code blocks** in your writings custom styled or do you use something like @prismjs
English
0
0
15
0
Prism
Prism@prismjs·
@azamuddin91 Have you tried running it in worker mode? It won't make it faster, but it will run asynchronously.
English
1
0
0
0
Muhammad Azamuddin
Muhammad Azamuddin@azamuddin91·
If only @prismjs could reduce it's execution time to 500ms.. probably performance score would increase. Unfortunately prism.js has great features around code highlight #nextjs
Muhammad Azamuddin tweet mediaMuhammad Azamuddin tweet media
English
2
0
1
0
Nesta
Nesta@NestaDenVackra·
Hello @prismjs, could you send me a DM please, I have some problem withe the integration of PHP in a <pre data-src="file"> ! It is just showing me the HTML, and I would like it to show the PHP too ! Thank you for your help.
English
2
0
0
0
Prism retweetledi
Johan Ronsse
Johan Ronsse@wolfr_2·
I implemented Prism on my website to get code highlighting... now that was easy. Thanks @prismjs team!
English
1
2
4
0
Prism
Prism@prismjs·
@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
0
0
0
0
adi🐡
adi🐡@adi_onl·
@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
1
0
0
0
adi🐡
adi🐡@adi_onl·
@prismjs Do you have an IRC chanel? Also, what do `.token.symbol` and `.token.deleted` stand for?
English
1
0
0
0
Prism
Prism@prismjs·
@stan0ne Sorry, which language/plugin is this about?
English
1
0
0
0
☪ 4LP460T ✪
☪ 4LP460T ✪@8Desibel·
@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..
☪ 4LP460T ✪ tweet media
English
1
0
0
0
Prism
Prism@prismjs·
@kylegawley Prism is an open source project. We're looking forward to your pull requests to improve it!
English
0
0
0
0
Kyle Gawley
Kyle Gawley@kylegawley·
@prismjs Your documentation really sucks and is a nightmare to get setup (but I love the product)
English
1
0
0
0
Prism retweetledi
Daniel Vaughan
Daniel Vaughan@DBVaughan·
Gosh that was easy. Added lovely syntax formatting to my pre elements using prismjs. No fuss. Thanks @prismjs! prismjs.com
English
0
1
2
0
Prism retweetledi
iOS Developer Recipes
iOS Developer Recipes@iosdevrecipes·
It's been a whirlwind week with #wwdc18 going on, but that hasn't stopped things from moving forward here! Added source code highlighting via @prismjs and have two new guides coming on Monday: One to do with fonts, and the other with testing. Stay tuned!
English
0
1
1
0
Prism
Prism@prismjs·
@xmuyoucai Great! Please submit a pull request?
English
1
0
0
0
Jeary Li
Jeary Li@xmuyoucai·
@prismjs Plugin Command Line and Autoloader are not compatible,I made some effort to make them compatible:
Jeary Li tweet media
English
1
0
0
0
Prism retweetledi
Rabbit
Rabbit@LongLostRabbit·
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
0
1
3
0
Prism
Prism@prismjs·
@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
0
0
1
0
Zach Phillips
Zach Phillips@zachphillips·
@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
1
0
0
0
Prism
Prism@prismjs·
@PineappleBombs I was hoping for some more actionable feedback than "eye sores"?
English
0
0
0
0
Prism
Prism@prismjs·
@PineappleBombs Thanks for keeping it in mind? Any specific things you'd like to see updated? is it the design or the content?
English
1
0
0
0