Skip to content

Commit 1cd1171

Browse files
committed
Added support for .xaml files and better support for .edn files.
1 parent a6766b2 commit 1cd1171

File tree

9 files changed

+75
-30
lines changed

9 files changed

+75
-30
lines changed

Application/Info.plist

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,25 @@
279279
</array>
280280
</dict>
281281
</dict>
282+
<dict>
283+
<key>UTTypeConformsTo</key>
284+
<array>
285+
<string>public.source-code</string>
286+
</array>
287+
<key>UTTypeDescription</key>
288+
<string>XAML source files</string>
289+
<key>UTTypeIdentifier</key>
290+
<string>com.microsoft.xaml</string>
291+
<key>UTTypeReferenceURL</key>
292+
<string>http://www.microsoft.com/</string>
293+
<key>UTTypeTagSpecification</key>
294+
<dict>
295+
<key>public.filename-extension</key>
296+
<array>
297+
<string>xaml</string>
298+
</array>
299+
</dict>
300+
</dict>
282301
<dict>
283302
<key>UTTypeConformsTo</key>
284303
<array>

Application/Storyboard.storyboard

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="17701" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="jPU-kU-bHn">
2+
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="18122" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="jPU-kU-bHn">
33
<dependencies>
44
<deployment identifier="macosx"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17701"/>
6-
<plugIn identifier="com.apple.WebKit2IBPlugin" version="17701"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="18122"/>
6+
<plugIn identifier="com.apple.WebKit2IBPlugin" version="18122"/>
77
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
88
</dependencies>
99
<scenes>
@@ -1722,22 +1722,22 @@ Gw
17221722
<objects>
17231723
<viewController id="X55-6V-jas" customClass="CustomTypeViewController" customModule="Syntax_Highlight" customModuleProvider="target" sceneMemberID="viewController">
17241724
<view key="view" misplaced="YES" id="BlH-se-5F6">
1725-
<rect key="frame" x="0.0" y="0.0" width="390" height="162"/>
1725+
<rect key="frame" x="0.0" y="0.0" width="350" height="162"/>
17261726
<autoresizingMask key="autoresizingMask"/>
17271727
<subviews>
17281728
<tabView type="noTabsNoBorder" initialItem="XZD-Za-R2F" translatesAutoresizingMaskIntoConstraints="NO" id="yf8-26-da4">
1729-
<rect key="frame" x="20" y="42" width="350" height="108"/>
1729+
<rect key="frame" x="20" y="42" width="290" height="108"/>
17301730
<font key="font" metaFont="system"/>
17311731
<tabViewItems>
17321732
<tabViewItem label="Info" identifier="1" id="BDw-pS-ctH">
17331733
<view key="view" id="1Qe-rv-bvb">
1734-
<rect key="frame" x="0.0" y="0.0" width="350" height="108"/>
1734+
<rect key="frame" x="0.0" y="0.0" width="290" height="108"/>
17351735
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
17361736
<subviews>
17371737
<scrollView verticalHuggingPriority="249" autohidesScrollers="YES" horizontalLineScroll="24" horizontalPageScroll="10" verticalLineScroll="24" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="g6Z-24-Lb1">
1738-
<rect key="frame" x="0.0" y="8" width="350" height="100"/>
1738+
<rect key="frame" x="0.0" y="8" width="290" height="100"/>
17391739
<clipView key="contentView" id="iZK-GA-Mdy">
1740-
<rect key="frame" x="1" y="1" width="348" height="98"/>
1740+
<rect key="frame" x="1" y="1" width="288" height="98"/>
17411741
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
17421742
<subviews>
17431743
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="firstColumnOnly" alternatingRowBackgroundColors="YES" columnReordering="NO" multipleSelection="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="24" rowSizeStyle="systemDefault" headerView="8yk-fc-LyJ" viewBased="YES" floatsGroupRows="NO" id="QJA-Al-xiu">
@@ -1932,7 +1932,7 @@ Gw
19321932
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="100" id="Q50-aN-Fqg"/>
19331933
</constraints>
19341934
<scroller key="horizontalScroller" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="cxD-Ri-4PX">
1935-
<rect key="frame" x="1" y="83" width="348" height="16"/>
1935+
<rect key="frame" x="1" y="83" width="288" height="16"/>
19361936
<autoresizingMask key="autoresizingMask"/>
19371937
</scroller>
19381938
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="YWW-1r-RSi">
@@ -1945,7 +1945,7 @@ Gw
19451945
</tableHeaderView>
19461946
</scrollView>
19471947
<stackView distribution="fill" orientation="vertical" alignment="leading" spacing="2" horizontalStackHuggingPriority="249.99998474121094" verticalStackHuggingPriority="249.99998474121094" horizontalHuggingPriority="248" verticalCompressionResistancePriority="751" detachesHiddenViews="YES" translatesAutoresizingMaskIntoConstraints="NO" id="LN0-No-4rj">
1948-
<rect key="frame" x="0.0" y="0.0" width="350" height="0.0"/>
1948+
<rect key="frame" x="0.0" y="0.0" width="290" height="0.0"/>
19491949
<subviews>
19501950
<customView hidden="YES" horizontalHuggingPriority="249" translatesAutoresizingMaskIntoConstraints="NO" id="NTW-ED-Wlb">
19511951
<rect key="frame" x="0.0" y="-24" width="441" height="24"/>
@@ -2113,7 +2113,7 @@ Gw
21132113
</connections>
21142114
</button>
21152115
<button hidden="YES" horizontalHuggingPriority="750" verticalHuggingPriority="750" horizontalCompressionResistancePriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="M2G-e2-cz7">
2116-
<rect key="frame" x="269" y="11" width="47" height="19"/>
2116+
<rect key="frame" x="209" y="11" width="47" height="19"/>
21172117
<buttonCell key="cell" type="roundRect" title="Reset" bezelStyle="roundedRect" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="zNC-OM-zKs">
21182118
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
21192119
<font key="font" metaFont="cellTitle"/>
@@ -2126,7 +2126,7 @@ Gw
21262126
</connections>
21272127
</button>
21282128
<button horizontalHuggingPriority="750" verticalHuggingPriority="750" horizontalCompressionResistancePriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="3sr-Ox-rDc">
2129-
<rect key="frame" x="324" y="11" width="46" height="19"/>
2129+
<rect key="frame" x="264" y="11" width="46" height="19"/>
21302130
<buttonCell key="cell" type="roundRect" title="Close" bezelStyle="roundedRect" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="PjX-zl-aBO">
21312131
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
21322132
<font key="font" metaFont="cellTitle"/>
@@ -2139,7 +2139,7 @@ Gw
21392139
</connections>
21402140
</button>
21412141
<customView translatesAutoresizingMaskIntoConstraints="NO" id="8JB-ZI-4t4" customClass="DropSensor" customModule="Syntax_Highlight" customModuleProvider="target">
2142-
<rect key="frame" x="0.0" y="0.0" width="390" height="162"/>
2142+
<rect key="frame" x="0.0" y="0.0" width="330" height="162"/>
21432143
</customView>
21442144
</subviews>
21452145
<constraints>

Application/resources/colorize.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ go4it () {
199199
algol | alg | ampl | dat | run | amtrix | s4 | s4t | s4h | hnd | t4 | awk | bms | boo | cmake | conf | anacrontab | crk | crystal | cr | cs_block_regex | docker | dockerfile | dts | dtsi | elixir | exs | fish | fstab | gdb | gdscript | gd | hcl | httpd | icon | icn | informix | 4gl | julia | jl | ldif | limbo | b | make | mak | mk | makefile | meson | n3 | ttl | nt | nasal | nas | nginx | nim | octave | perl | pl | cgi | pm | plx | plex | po | ps1 | psl | pyrex | pyx | python | py | q | qmake | pro | qu | r | rnc | ruby | rb | rjs | gemfile | rakefile | s | sh | bash | zsh | ebuild | eclass | spec | tcl | wish | itcl | tcsh | terraform | toml | yaml | yml | csh | ksh )
200200
comment1="#"
201201
;;
202-
arc | aspect | was | wud | assembler | asm | a51 | 29k | 68s | 68x | x86 | autohotkey | ahk | autoit | au3 | blitzbasic | bb | clojure | clj | clp | exapunks | exa | fasm | inc | felix | flx | idlang | ini | doxyfile | desktop | kdev3 | jasmin | j | lisp | cl | clisp | el | lsp | sbcl | scom | fas | scm | msl | nbs | nsis | nsi | nsh | paradox | sc | purebasic | pb | pbi | pbf | rebol )
202+
arc | aspect | was | wud | assembler | asm | a51 | 29k | 68s | 68x | x86 | autohotkey | ahk | autoit | au3 | blitzbasic | bb | clojure | clj | clp | edn | exapunks | exa | fasm | inc | felix | flx | idlang | ini | doxyfile | desktop | kdev3 | jasmin | j | lisp | cl | clisp | el | lsp | sbcl | scom | fas | scm | msl | nbs | nsis | nsi | nsh | paradox | sc | purebasic | pb | pbi | pbf | rebol )
203203
comment1=";"
204204
;;
205205
arm | bat | cmd | vb | bas | basic | bi | vbs )
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>syntax</key>
6+
<string>clojure</string>
7+
</dict>
8+
</plist>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>syntax</key>
6+
<string>xml</string>
7+
</dict>
8+
</plist>

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
Changelog
22
=======
3+
### 2.0.4
4+
New features:
5+
- Added support for `.xaml` files (rendered as `XML`).
6+
7+
Bugfix:
8+
- Better clojure `.edn` support.
39

410
### 2.0.3
511
Bugfix:

QLExtension/Info.plist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<string>com.adobe.actionscript</string>
3535
<string>com.adobe.coldfusion</string>
3636
<string>com.adobe.jsx</string>
37+
<string>com.adobe.edn</string>
3738
<string>com.apple.applescript.script</string>
3839
<string>com.apple.applescript.text</string>
3940
<string>com.apple.dt.interfacebuilder.document.storyboard</string>
@@ -62,6 +63,7 @@
6263
<string>com.microsoft.typescript</string>
6364
<string>com.microsoft.vb-source</string>
6465
<string>com.microsoft.visual-basic</string>
66+
<string>com.microsoft.xaml</string>
6567
<string>com.netscape.javascript-source</string>
6668
<string>com.sun.java-properties</string>
6769
<string>com.sun.java-source</string>
@@ -199,6 +201,7 @@
199201
<string>dyn.ah62d4rv4ge80g5dn</string>
200202
<string>dyn.ah62d4rv4ge80g5dnsq</string>
201203
<string>dyn.ah62d4rv4ge80g5dnqq</string>
204+
<string>dyn.ah62d4rv4ge81u2prru</string>
202205
</array>
203206
<key>QLSupportsSearchableItems</key>
204207
<false/>

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ On _**MacOS 11 Big Sur**, the system allows you to manage these previously unaut
158158
- VIM script files (`.vim`)
159159
- Visual Basic source files (`.vb`, `.bas`, `.basic`, `.vbs`)
160160
- Vue source files (`.vue`)
161+
- XAML source files (`.xaml`) _as XML_
161162
- Xcode localizable strings files (`.strings`, `.stringsdict`) (dinamically decompiled with `plutil`)
162163
- XHTML files (`.xhtml`)
163164
- XML files (`.xml`) **`.xml` is reserved by the System and cannot be handled.**

SourceCodeSyntaxHighlight.xcodeproj/project.pbxproj

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,7 +1693,7 @@
16931693
CODE_SIGN_IDENTITY = "-";
16941694
CODE_SIGN_STYLE = Manual;
16951695
COMBINE_HIDPI_IMAGES = YES;
1696-
CURRENT_PROJECT_VERSION = 35;
1696+
CURRENT_PROJECT_VERSION = 36;
16971697
DEVELOPMENT_TEAM = "";
16981698
ENABLE_HARDENED_RUNTIME = YES;
16991699
FRAMEWORK_SEARCH_PATHS = (
@@ -1711,7 +1711,7 @@
17111711
"$(inherited)",
17121712
"\"$(BUILT_PRODUCTS_DIR)/highlight\"",
17131713
);
1714-
MARKETING_VERSION = 2.0.3;
1714+
MARKETING_VERSION = 2.0.4;
17151715
PRODUCT_BUNDLE_IDENTIFIER = org.sbarex.SourceCodeSyntaxHighlight;
17161716
PRODUCT_NAME = "$(TARGET_NAME)";
17171717
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -1729,7 +1729,7 @@
17291729
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO;
17301730
CODE_SIGN_STYLE = Manual;
17311731
COMBINE_HIDPI_IMAGES = YES;
1732-
CURRENT_PROJECT_VERSION = 35;
1732+
CURRENT_PROJECT_VERSION = 36;
17331733
DEVELOPMENT_TEAM = "";
17341734
ENABLE_HARDENED_RUNTIME = YES;
17351735
FRAMEWORK_SEARCH_PATHS = (
@@ -1747,7 +1747,7 @@
17471747
"$(inherited)",
17481748
"\"$(BUILT_PRODUCTS_DIR)/highlight\"",
17491749
);
1750-
MARKETING_VERSION = 2.0.3;
1750+
MARKETING_VERSION = 2.0.4;
17511751
OTHER_CODE_SIGN_FLAGS = "--timestamp";
17521752
PRODUCT_BUNDLE_IDENTIFIER = org.sbarex.SourceCodeSyntaxHighlight;
17531753
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -1763,7 +1763,7 @@
17631763
CODE_SIGN_ENTITLEMENTS = QLExtension/QLExtension.entitlements;
17641764
CODE_SIGN_IDENTITY = "-";
17651765
CODE_SIGN_STYLE = Manual;
1766-
CURRENT_PROJECT_VERSION = 35;
1766+
CURRENT_PROJECT_VERSION = 36;
17671767
DEVELOPMENT_TEAM = "";
17681768
ENABLE_HARDENED_RUNTIME = YES;
17691769
FRAMEWORK_SEARCH_PATHS = (
@@ -1776,7 +1776,7 @@
17761776
"@executable_path/../Frameworks",
17771777
"@executable_path/../../../../Frameworks",
17781778
);
1779-
MARKETING_VERSION = 2.0.3;
1779+
MARKETING_VERSION = 2.0.4;
17801780
PRODUCT_BUNDLE_IDENTIFIER = org.sbarex.SourceCodeSyntaxHighlight.QuicklookExtension;
17811781
PRODUCT_NAME = "$(TARGET_NAME)";
17821782
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -1792,7 +1792,7 @@
17921792
CODE_SIGN_IDENTITY = "-";
17931793
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO;
17941794
CODE_SIGN_STYLE = Manual;
1795-
CURRENT_PROJECT_VERSION = 35;
1795+
CURRENT_PROJECT_VERSION = 36;
17961796
DEVELOPMENT_TEAM = "";
17971797
ENABLE_HARDENED_RUNTIME = YES;
17981798
FRAMEWORK_SEARCH_PATHS = (
@@ -1805,7 +1805,7 @@
18051805
"@executable_path/../Frameworks",
18061806
"@executable_path/../../../../Frameworks",
18071807
);
1808-
MARKETING_VERSION = 2.0.3;
1808+
MARKETING_VERSION = 2.0.4;
18091809
OTHER_CODE_SIGN_FLAGS = "--timestamp";
18101810
PRODUCT_BUNDLE_IDENTIFIER = org.sbarex.SourceCodeSyntaxHighlight.QuicklookExtension;
18111811
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -1822,12 +1822,12 @@
18221822
CODE_SIGN_IDENTITY = "-";
18231823
CODE_SIGN_STYLE = Manual;
18241824
COMBINE_HIDPI_IMAGES = YES;
1825-
CURRENT_PROJECT_VERSION = 35;
1825+
CURRENT_PROJECT_VERSION = 36;
18261826
DEVELOPMENT_TEAM = "";
18271827
ENABLE_HARDENED_RUNTIME = YES;
18281828
INFOPLIST_FILE = XPCService/Info.plist;
18291829
LD_RUNPATH_SEARCH_PATHS = "@loader_path/../../../../Frameworks";
1830-
MARKETING_VERSION = 2.0.3;
1830+
MARKETING_VERSION = 2.0.4;
18311831
PRODUCT_BUNDLE_IDENTIFIER = org.sbarex.SourceCodeSyntaxHighlight.XPCService;
18321832
PRODUCT_NAME = "$(TARGET_NAME)";
18331833
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -1846,12 +1846,12 @@
18461846
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO;
18471847
CODE_SIGN_STYLE = Manual;
18481848
COMBINE_HIDPI_IMAGES = YES;
1849-
CURRENT_PROJECT_VERSION = 35;
1849+
CURRENT_PROJECT_VERSION = 36;
18501850
DEVELOPMENT_TEAM = "";
18511851
ENABLE_HARDENED_RUNTIME = YES;
18521852
INFOPLIST_FILE = XPCService/Info.plist;
18531853
LD_RUNPATH_SEARCH_PATHS = "@loader_path/../../../../Frameworks";
1854-
MARKETING_VERSION = 2.0.3;
1854+
MARKETING_VERSION = 2.0.4;
18551855
OTHER_CODE_SIGN_FLAGS = "--timestamp";
18561856
PRODUCT_BUNDLE_IDENTIFIER = org.sbarex.SourceCodeSyntaxHighlight.XPCService;
18571857
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -1870,15 +1870,15 @@
18701870
CODE_SIGN_IDENTITY = "-";
18711871
CODE_SIGN_STYLE = Manual;
18721872
COMBINE_HIDPI_IMAGES = YES;
1873-
CURRENT_PROJECT_VERSION = 35;
1873+
CURRENT_PROJECT_VERSION = 36;
18741874
DEVELOPMENT_TEAM = "";
18751875
ENABLE_HARDENED_RUNTIME = YES;
18761876
INFOPLIST_FILE = SyntaxHighlightRenderXPC/Info.plist;
18771877
LD_RUNPATH_SEARCH_PATHS = (
18781878
"@loader_path/../../../../Frameworks",
18791879
"$(LD_RUNPATH_SEARCH_PATHS_$(IS_MACCATALYST)_$(_BOOL_$(SKIP_INSTALL)))",
18801880
);
1881-
MARKETING_VERSION = 2.0.3;
1881+
MARKETING_VERSION = 2.0.4;
18821882
PRODUCT_BUNDLE_IDENTIFIER = org.sbarex.SourceCodeSyntaxHighlight.XPCRender;
18831883
PRODUCT_NAME = "$(TARGET_NAME)";
18841884
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -1894,15 +1894,15 @@
18941894
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO;
18951895
CODE_SIGN_STYLE = Manual;
18961896
COMBINE_HIDPI_IMAGES = YES;
1897-
CURRENT_PROJECT_VERSION = 35;
1897+
CURRENT_PROJECT_VERSION = 36;
18981898
DEVELOPMENT_TEAM = "";
18991899
ENABLE_HARDENED_RUNTIME = YES;
19001900
INFOPLIST_FILE = SyntaxHighlightRenderXPC/Info.plist;
19011901
LD_RUNPATH_SEARCH_PATHS = (
19021902
"@loader_path/../../../../Frameworks",
19031903
"$(LD_RUNPATH_SEARCH_PATHS_$(IS_MACCATALYST)_$(_BOOL_$(SKIP_INSTALL)))",
19041904
);
1905-
MARKETING_VERSION = 2.0.3;
1905+
MARKETING_VERSION = 2.0.4;
19061906
OTHER_CODE_SIGN_FLAGS = "--timestamp";
19071907
PRODUCT_BUNDLE_IDENTIFIER = org.sbarex.SourceCodeSyntaxHighlight.XPCRender;
19081908
PRODUCT_NAME = "$(TARGET_NAME)";

0 commit comments

Comments
 (0)