Skip to content

Commit 0438f77

Browse files
committed
Add Splash and Highlightr for syntax highlighting
Splash is good at Swift, but it's not providing builtin support for other languages. Highlightr uses highlight.js, which is terrible in highlighting Swift. Hope someone can make a wrapper for prism.js.
1 parent 45326d8 commit 0438f77

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

Copilot for Xcode.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Core/Package.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ let package = Package(
2525
dependencies: [
2626
.package(url: "https://github.com/ChimeHQ/LanguageClient", from: "0.3.1"),
2727
.package(url: "https://github.com/apple/swift-async-algorithms", from: "0.1.0"),
28+
.package(url: "https://github.com/raspu/Highlightr", from: "2.1.0"),
29+
.package(url: "https://github.com/JohnSundell/Splash", from: "0.1.0"),
2830
],
2931
targets: [
3032
.target(name: "CGEventObserver"),
@@ -102,6 +104,8 @@ let package = Package(
102104
"ActiveApplicationMonitor",
103105
"AXNotificationStream",
104106
"Environment",
107+
"Highlightr",
108+
"Splash",
105109
]
106110
),
107111
.target(name: "UpdateChecker"),

0 commit comments

Comments
 (0)