π Glow Syntax Highlighter for your Lume site! The lightweight code highlighter you ever need!
Repository
Current version released
7 months ago
Versions
π¦π₯π
Glow plugin for Lume!
Tip
Follow these link mainly:-
- π Follow Website:- arnavk-09.github.io/lume_glow/
- π Deno Plugin:- deno.land/x/lume_glow
- π Github Repo:- github.com/ArnavK-09/lume_glow
π₯ Lume:-
Lume (pronounced /lume/) is the Galician word for fire but also a static site generator for Deno.
Inspired by other static site generators, such as Jekyll, Hugo or Eleventy, but easier to use and configure and much more flexible.
π Glow Syntax Highlighter:-
Glow is different: Instead of attempting to understand language internals, Glow focuses solely on aesthetics β and how your code looks.
Glow is simple: Glow makes all languages work with your brand colors by adjusting just a handful of CSS variables.
Glow is microscale: Glow is orders of magnitude smaller than the mainstream alternatives. Weβre talking 5K instead of 5M. Itβs by far the smallest implementation available
π Add glow to your lume site!
1. Import plugin
import lume_glow from "https://deno.land/x/lume_glow/plugin.ts";
2. Configure Plugin to your lume site
const site = lume(); // creating lume site
site.use(lume_glow()); // adding glow plugin
3. Customize your code!
β Plugin Optionsβ¦
/**
* Plugin Options
*/
export interface Options {
/**
* tells glow the language of the code. This is optional. When not provided, glow attempts to guess the language.
*/
language?: string;
/**
* is a boolean flag indicating whether line numbers should be rendered
*/
numbered?: boolean;
/**
* configure package size for glow styles
*/
size?: "nano" | "default";
}
π Give A Star! π