Swiftpack.co -  tgymnich/PygmentsPublishPlugin as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
🖍Syntax highlighting for Publish using pygments
.package(url: "https://github.com/tgymnich/PygmentsPublishPlugin.git", from: "0.0.10")


A work in progress implemntation of a pygments plugin for use with Publish.


Install pygments on your machine.

pip3 install pygments

In your Package.swift add:

.package(url: "https://github.com/tgymnich/PygmentsPublishPlugin.git", from: "0.0.4")


To load the plugin simply add these lines:

import PygmentsPublishPlugin


try MyWebsite().publish(
    plugins: [.pygmentize(withClassPrefix: "")]


You'll also need to add some CSS. Check out these examples


Stars: 0
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

51 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API