
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
@favware/syntax-highlighter-react
Advanced tools
A lightweight, easy-to-use and framework agnostic syntax highlighter for your code examples(snippets) in web applications
Table of Contents
There are many syntax highlighters avaliable already but most of those are either complex to setup or front end framework specific.
@favware/syntax-highlighter-reactis built using StencilJS. You can use it everywhere, i.e. Angular, React, Vue, any framework, No Framework!This is an adoptation of snippet-highlight from rahulbhooteshwar
monospaceyarn add @favware/syntax-highlighter-react @favware/syntax-highlighter-react
# or npm install @favware/syntax-highlighter-react @favware/syntax-highlighter-react
The syntax is kept fairly simple. Here's a basic example of some simple JavaScript code:
import { SyntaxHighlighter } from '@favware/syntax-highlighter-react';
<SyntaxHighlighter theme="dark" language="javascript" content="import { SyntaxHighlighter } from @favware/syntax-highlighter-react" />;
To limit the size of this library a selection has been made from all langauges supported by PrismJS. The chosen languages are those that we consider the most popular / common. If you want to see another languages supported you're always free to open an issue
javascript, typescript, asciidoc, autohotkey, autoit, bash, batch,
c, clike, clojure, coffeescript, cpp, csharp, csp, css, dart,
diff, docker, elixir, gherkin, git, go, graphql, groovy, http,
ini, java, json, jsx, kotlin, less, lua, makefile, markdown,
nginx, objectivec, powershell, python, ruby, rust, sass, scala,
scss, sql, swift, tsx, vim, visual-basic, wasm, wiki, yaml


FAQs
React bindings for @favware/syntax-highlighter-core
The npm package @favware/syntax-highlighter-react receives a total of 1 weekly downloads. As such, @favware/syntax-highlighter-react popularity was classified as not popular.
We found that @favware/syntax-highlighter-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.