Skip to content

wenyan-lang/highlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

998c168 · Dec 20, 2023

History

39 Commits
Jan 11, 2020
Sep 7, 2020
Jan 10, 2020
Jan 11, 2020
Dec 20, 2023
Sep 8, 2020
Jul 19, 2020
Apr 27, 2020
Jan 11, 2020
Jan 11, 2020
Jan 11, 2020
Sep 7, 2020
Sep 7, 2020
Sep 7, 2020

Repository files navigation

文言五色 - Syntax highlighters for Wenyan Lang

Check out the examples

Syntax highlighters

Format File
CodeMirror wenyan.codemirror.js
Prism wenyan.prism.js
TextMate Grammar wenyan.tmLanguage.json

Highlight Themes

wenyan-light

Format File
CodeMirror wenyan-light.codemirror.css
Prism wenyan-light.prism.css

Usage

💡 Replace codemirror if you want to use different formats/editors

CDN

<!--Highlighter-->
<script src='https://cdn.jsdelivr.net/gh/wenyan-lang/highlight/wenyan.codemirror.js'></script>
<!--Theme-->
<link rel='stylesheet' type='text/css' href='https://cdn.jsdelivr.net/gh/wenyan-lang/highlight/wenyan-light.codemirror.css'>

NPM

npm i @wenyan/highlight
require('@wenyan/highlight/wenyan.codemirror')

// or 

import '@wenyan/highlight/wenyan.codemirror'

Build

The syntax highlighter are generated from the language syntax definition. Rebuild by

npm run build