Syntax Highlight
Add a syntax highlighting component to your Factor app.
Add a syntax highlighting component to your Factor app.
This plugin adds a syntax highlighting component for content. All you need to do is wrap your HTML content with <plugin-highlight-code>content</plugin-highlight-code>
Just add to your application dependencies:
npm add @factor/plugin-highlight-code
Run npx factor setup
for a question based CLI to help you configure this plugin's options.