From 54b88d5fd45c4d3377625cc23e955d09ef715aae Mon Sep 17 00:00:00 2001 From: Samuel Meuli Date: Sun, 17 May 2020 16:13:17 +0200 Subject: [PATCH] Add support for more templating languages Closes #5 --- QLPlugin/Info.plist | 5 +++++ QLPlugin/Views/Previews/CodePreview.swift | 3 +++ 2 files changed, 8 insertions(+) diff --git a/QLPlugin/Info.plist b/QLPlugin/Info.plist index dcd77a0..e5302b8 100644 --- a/QLPlugin/Info.plist +++ b/QLPlugin/Info.plist @@ -95,12 +95,16 @@ com.sun.manifest com.vallettaventures.texpadm.tex dyn.ah62d4rv4ge8007a + dyn.ah62d4rv4ge8024pvszy0k dyn.ah62d4rv4ge80255drq + dyn.ah62d4rv4ge8064xp dyn.ah62d4rv4ge80c75p dyn.ah62d4rv4ge80g55sq2 dyn.ah62d4rv4ge80g62 dyn.ah62d4rv4ge80s52 dyn.ah62d4rv4ge80s6xbqv0gn + dyn.ah62d4rv4ge80u2psqv0gn2xbsm3u + dyn.ah62d4rv4ge80u2xx dyn.ah62d4rv4ge80w5pq dyn.ah62d4rv4ge80y652 dyn.ah62d4rv4ge81e3pxr70hq3pe @@ -110,6 +114,7 @@ dyn.ah62d4rv4ge81g6pq dyn.ah62d4rv4ge81k55rru dyn.ah62d4rv4ge81k652 + dyn.ah62d4rv4ge81k75mq6 org.arduino.ino-source org.arduino.source org.asm.source diff --git a/QLPlugin/Views/Previews/CodePreview.swift b/QLPlugin/Views/Previews/CodePreview.swift index 84aca73..515faf9 100644 --- a/QLPlugin/Views/Previews/CodePreview.swift +++ b/QLPlugin/Views/Previews/CodePreview.swift @@ -13,7 +13,10 @@ let fileExtensionLexers = [ "alfredappearance": "json", // Alfred theme "cls": "tex", // LaTeX classes file "entitlements": "xml", + "hbs": "handlebars", // Handlebars template "iml": "xml", + "liquid": "twig", // Liquid template + "njk": "twig", // Nunjucks template "plist": "xml", "resolved": "json", // Swift Package Manager lockfile (Package.resolved) "scpt": "applescript", // AppleScript binary