shiki icon indicating copy to clipboard operation
shiki copied to clipboard

A beautiful yet powerful syntax highlighter

Results 81 shiki issues
Sort by recently updated
recently updated
newest added

https://user-images.githubusercontent.com/8336744/132042144-9d816b2a-5354-4609-8621-b065e4bfe2b6.mp4 My source code: ```tsx import { Skeleton } from 'antd' import type { FC } from 'react' import { setCDN, getHighlighter } from 'shiki' import './index.less' import { Rehype...

bug

`` Gives error: ``` shiki:1 Uncaught ReferenceError: vscode is not defined at shiki:1:31910 ``` Fixes it: ``

bug

Hey! I see that there’s internal support for background colors: https://github.com/shikijs/shiki/blob/747571082367aff6f1445318bad6b698df330e87/packages/shiki/src/stackElementMetadata.ts#L100 …and that certain themes use background colors (e.g., GH). However, it doesn’t seem like they are being retrieved when...

bug
help-wanted
good-first-issue

can we have cs for language | 'csharp' | 'c#' | 'cs' we can import files to show the code and would be nice if the language matches the file...

feature-request
good-first-issue

I only want to use the simplest features to ensure a smooth experience

question

[WGSL](https://www.w3.org/TR/WGSL/) is gaining traction in the shader community as WebGPU is on the horizon 😄 Support for it in Shiki would be awesome! Here's the grammar for the language: https://github.com/PolyMeilex/vscode-wgsl/blob/master/syntaxes/wgsl.tmLanguage.json

When I call getGrammar('mjs') in `packages\shiki\src\highlighter.ts`, error occurs: `No language registration for mjs`, which results in a error like ['vitepress build docs' error](https://github.com/vuejs/vitepress/issues/1025#issuecomment-1191481726). As a result, I **pass the default...

Would it be possible to add support for line numbers? Bonus points for **not** restricting you to auto-generate them either. For example, when showing a Git diff, the line numbers...

feature-request

Hi, It would be great if we was able to highlight diffs similar to this: ![1AFD0748-9545-4650-B6DE-C149F83CE5C6](https://user-images.githubusercontent.com/47271716/176746054-69d80c09-b0fa-4d29-b86e-2527c0506181.jpeg) In addition, being able to blur surrounding code so only a section is visible....

I'm trying to get async loading working properly for all languages supported by Shiki in [showcode.app](https://github.com/stevebauman/showcode/), but it seems some languages have issues and others do not. The issue is...

need-more-info