PrismJS
tailwindcss-typography
Our great sponsors
PrismJS | tailwindcss-typography | |
---|---|---|
59 | 49 | |
12,002 | 3,651 | |
0.9% | 7.7% | |
0.0 | 6.1 | |
2 months ago | 9 days ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PrismJS
-
My OpenSource Blog that You Can Use Right Now
For Code highlighting, I am using Prism.js. First I am loading the styles file inside the _app.tsx file and inside the CodeBlock component, I am loading the styling that gives us beautiful syntax highlights.
-
Build a simple code editor
Luckily, implementing syntax highlighting in our simple code editor is easy with the use of external libraries. There are several JavaScript libraries available, such as Prism and Highlight.js. For our editor, we'll use Prism since it's easy to use and supports a wide range of programming languages.
-
To learn svelte, I clone Github's issues page including useful features that you might consider reusing.
π Prismjs Code highlighting, use it with Marked
-
Code Reading Docusaurus
I'm trying to implement the new feature in a similar way, but not exactly the same, so my plan is going to modify unwrapMdxCodeBlocks function and apply Prism to highlight the code blocks.
-
GDScript (Godot) syntax highlighting in Obsidian?
Hey all, I've been taking notes as I learn Godot engine, using the Editor Syntax Highlight plugin, but it doesn't show highlighting in edit mode unlike how it does for other languages. I read on a forum somewhere that this plugin/Obsidian uses [PrismJS](https://github.com/PrismJS/prism/issues) for syntax highlighting, which has gdscript on its list of supported languages, yet it doesn't work. Any help would be appreciated thank you!
-
Blog in django
I tend to use https://prismjs.com/ on my blog. On the website you click which languages you want to support (e.g. Python, JavaScript, ...) and get a custom set of CSS and JS files which you load into your template. Code than has to be wrapped in
-
How should i go about making a library to color code (syntax highlighting) a user has written?
Or this one for csharp which is more complex https://github.com/PrismJS/prism/blob/master/components/prism-csharp.js
-
What is the proper language markup type we should use for a MakeFile code snippet?
I believe Obsidian utilizes PrismJS as its default syntax highlighter for code blocks.
-
Sveltekit prismjs
I have a problem with using PrismJS with SvelteKit. I can get the basic languages to work like javascript, but I can't load additional ones using the loadLanguages function, because of the Vite (or at least I think that is the problem). Is there any way to load additional languages highlighting? I am also using tailwind css and flowbite-svelte.
-
Nextra 2 β Next.js Static Site Generator
Prismjs was replaced by Shiki and rehype-pretty-code.
tailwindcss-typography
-
Creating a static Next.js 14 Markdown Blog - An Adventure
To enable viewing MDX files in our app, lets install MDX. We should also install our other helper which is tailwindcss/typography as a dev dependency. This'll be useful later for auto styling the blog post.
-
I built an Markdown editor using Next.js and TailwindCss π₯
3. Setup react-markdown and @tailwindcss/typography
-
Ask HN: Examples of clean design in personal blogs / digital portfolios?
The typography plugin which comes out of tailwind gives a clean readable experience in my opinion. https://tailwindcss.com/docs/typography-plugin
-
The 7 best plugins to use in your Tailwind project
This is the text before the plugin: This is the text after applying the plugin: You can play with the demo here, and check out more ways to use it in the Typography documentation.
-
Strategy to generate the Tokens Studio(Figma) JSON file converter for Tailwind CSS and Emotion
2. Use typography plugin
-
Launch HN: Tiptap (YC S23) β Toolkit for developing collaborative editors
We've been using https://tailwindcss.com/docs/typography-plugin with Tiptap and it's worked great so far.
-
Create Dynamic Blog Layouts Using Negative Margins
While we could have used the Tailwind CSS Typography plugin, we chose this solution to have more control over the tag styles and avoid overriding the pluginβs default styles. Since this demo utilizes only a few elements, this choice is appropriate.
-
How to Render Markdown Views in Rails
Are you talking about Typography? If yes, that's what I'm using to pretty-print the HTML, which was generated using the above technique.
-
bring image besides headline on the left & right side in tailwind css without using flexbox?
i also mostly cannot change layout since i use @tailwind/typography which requires a specific layout.
-
Rebuilding my Portfolio with Next, MDX, and Contentlayer
Before rendering the BlogPost, we can also style some of it using Tailwind Typography
What are some alternatives?
Highlight.js - JavaScript syntax highlighter with language auto-detection and zero dependencies.
modern-normalize - π Normalize browsers' default style
shiki - A beautiful yet powerful syntax highlighter
mdx - Markdown for the component era
Tailwind CSS - A utility-first CSS framework for rapid UI development.
Quasar Framework - Quasar Framework - Build high-performance VueJS user interfaces in record time
Javascript Left-Right Parser - Parser for JavaScript
react - Cheatsheets for experienced React developers getting started with TypeScript
ace - Ace (Ajax.org Cloud9 Editor)
sveltekit-graphcms-starter-blog - SvelteKit starter blog with GraphCMS
CodeMirror - In-browser code editor (version 5, legacy)
Svelte - Cybernetically enhanced web apps