This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

shiki-templ
TypeScript icon, indicating that this package has built-in type declarations

0.2.4 • Public • Published

shiki-templ

Enabling Templ syntax highlighting in Shiki.

  NPM Package license

shiki-templ makes easier to use the TextMate grammar definition for Templ with Shiki.

The package fetches the online version of the grammar file.

[!NOTE] A PR has been submitted to officially add Templ language support to Shiki. > This package will be used in the meantime.

sample templ syntax

Installation

You can install the package using npm, pnpm, or yarn:

# npm
npm install shiki-templ

# pnpm
pnpm add shiki-templ

# yarn
yarn add shiki-templ

Usage

Shiki

To use the shiki-templ with Shiki, please refer to the official Load Custom Language page.

Vitepress

Here's how you can configure Vitepress to use the shiki-templ:

import { defineConfig } from "vitepress";
import { templLang } from "shiki-templ";

// https://vitepress.dev/reference/site-config
export default defineConfig({
    // ...
    markdown: {
        languages: [templLang],
    },
}):

License

This project is licensed under the MIT License - see the LICENSE file for details.

Package Sidebar

Install

npm i shiki-templ

Weekly Downloads

0

Version

0.2.4

License

MIT

Unpacked Size

5.3 kB

Total Files

6

Last publish

Collaborators

  • indaco