Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tgymnich/pygmentspublishplugin
đź–ŤSyntax highlighting for Publish using pygments
https://github.com/tgymnich/pygmentspublishplugin
publish publish-plugin pygments swift syntax-highlighting
Last synced: 25 days ago
JSON representation
đź–ŤSyntax highlighting for Publish using pygments
- Host: GitHub
- URL: https://github.com/tgymnich/pygmentspublishplugin
- Owner: tgymnich
- License: mit
- Created: 2020-01-11T13:55:06.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-02-01T23:30:24.000Z (11 months ago)
- Last Synced: 2024-10-26T14:52:39.164Z (2 months ago)
- Topics: publish, publish-plugin, pygments, swift, syntax-highlighting
- Language: Swift
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PygmentsPublishPlugin
A work in progress implemntation of a pygments plugin for use with [Publish](https://github.com/johnsundell/publish).
# Install
Install pygments on your machine.
```
pip3 install pygments
```In your Package.swift add:
```swift
.package(url: "https://github.com/tgymnich/PygmentsPublishPlugin.git", from: "0.0.4")
```# Setup
To load the plugin simply add these lines:
```swift
import PygmentsPublishPlugin
...
try MyWebsite().publish(
...
plugins: [.pygmentize(withClassPrefix: "")]
])
```# CSS
You'll also need to add some CSS. Check out these [examples](https://github.com/richleland/pygments-css)