
Product
Socket Now Protects the Chrome Extension Ecosystem
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
svelte-highlight
Advanced tools
Syntax Highlighting for Svelte using highlight.js.
This component wraps highlight.js to provide syntax highlighting in Svelte 3.
yarn add svelte-highlight
<script>
import Highlight from 'svelte-highlight';
import { typescript } from 'svelte-highlight/languages';
import 'svelte-highlight/styles/github.css';
</script>
<Highlight language={typescript}>const a: number = 4;</Highlight>
Note: Importing a css file in Svelte requires the appropriate module loader. Refer to the rollup example.
0.1.1 - 2019-11-09
svelte
import by publishing src
folderFAQs
Svelte component library for highlighting code using highlight.js
The npm package svelte-highlight receives a total of 9,581 weekly downloads. As such, svelte-highlight popularity was classified as popular.
We found that svelte-highlight demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.