syntect
shiki
syntect | shiki | |
---|---|---|
5 | 26 | |
1,802 | 8,626 | |
- | 4.3% | |
7.1 | 9.8 | |
6 days ago | 15 days ago | |
Rust | TypeScript | |
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.
syntect
-
Documentation generators and custom syntax highlighting
Zola (https://www.getzola.org/) can generate from markdown-ish files nice looking documentation websites (and also RSS feeds), it uses syntect (https://github.com/trishume/syntect) which supports sublime syntax highlight files. For github readme I don't have a solution besides using a png.
-
AIChat: A cli tool to chat with gpt-3.5/chatgpt in terminal.
Syntax highlighting: https://github.com/trishume/syntect
-
Will Treesitter ever be stable on big files?
I wonder if a plugin integrating syntect would be possible.
-
[Media] I made a Rust CLI game that tests how fast you can guess the language of a code block!
I love that idea! I think there might be a better way than just hardcoding all the comment types for all the languages, though. I'm using the syntect library which will parse the code based on syntax files, so I opened an issue there to see if they have anything that could help.
-
Is calling a Rust function from NodeJS via WASM like really slow?
Very recently, I stumbled onto a library called syntect, which is a syntax highlighting library, and I got interested in the project because it promises to be really fast.
shiki
- Shiki: A beautiful yet powerful syntax highlighter
-
VueJS turns 10 years old
Shiki (https://shiki.style) might be good enough for your usecase, use the latest beta versions as it's the new fresh esm rewrite.
-
GIGO and VS-code: the Battle With Microsoft
Finally the vanguard had arrived. A markdown renderer named Shiki.
-
Scraping Google Maps
Can I introduce you to our lord and savior Shiki? https://github.com/shikijs/shiki
-
Shiki Syntax Highlighter
Coincidentally, I recently looked into the slow startup time for shiki and it was mostly from parsing JSONC, not WASM: https://github.com/shikijs/shiki/issues/439.
-
Dark mode with Shiki and Code Hike
Warning: This article refers to versions of Code Hike before 0.8.0. Since version 0.8.0, Code Hike uses lighter instead of Shiki. The approach presented in this article uses shiki's color replacement method, which no longer works with lighter.
- What do you use to display code example on your personal blog, or in an article?
-
Nextra 2 – Next.js Static Site Generator
Prismjs was replaced by Shiki and rehype-pretty-code.
-
Want to create attractive, interactive docs? Use these amazing documentation tools and examples
The outcome I was (mostly) hoping for has been done by Shiki library! I take no credit for the idea btw, I am just glad that someone else (Pine) took it on!
What are some alternatives?
confy - 🛋 Zero-boilerplate configuration management in Rust
PrismJS - Lightweight, robust, elegant syntax highlighting.
ammonia - Repair and secure untrusted HTML
Highlight.js - JavaScript syntax highlighter with language auto-detection and zero dependencies.
guess-that-lang - CLI game to see how fast you can guess the language of a code block!
next-mdx-remote - Load mdx content from anywhere through getStaticProps in next.js
rust-build.action - Automate publishing Rust build artifacts for GitHub releases through GitHub Actions
codehike - Marvellous code walkthroughs
sublime-monokai-extended - Extends Monokai from Soda with additional syntax highlighting for Markdown, LESS, HTML, Handlebars and more.
mdx - Markdown for the component era
starship - ☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!
dev - Development repository for the CodeMirror editor project