@git-diff-view/lowlight
npm install @git-diff-view/lowlight> Built-in syntax highlighter for @git-diff-view using lowlight


This package is the default syntax highlighter built into @git-diff-view/core. It uses lowlight (highlight.js wrapper) for syntax highlighting.
- ✅ Built into @git-diff-view/core by default
- ✅ No additional installation required
- ✅ Based on highlight.js
- ✅ Supports 190+ languages
- ✅ Fast and lightweight
- ✅ Works in browser and Node.js
No explicit setup needed - it's automatically used by @git-diff-view/core:
``typescript
import { DiffFile } from "@git-diff-view/core";
const file = new DiffFile(/ ... /);
file.init(); // Automatically uses lowlight for syntax highlighting
``
This is the default highlighter and suitable for most use cases. Consider @git-diff-view/shiki if you need:
- More accurate syntax highlighting
- VSCode-compatible themes
- Better language grammar support
- @git-diff-view/core - Core package that includes this
- @git-diff-view/shiki - Alternative highlighter
- lowlight - Underlying library
- highlight.js - Language definitions
MIT © MrWangJustToDo