Skip to content

Commit fff0af4

Browse files
committed
Install highlight styles/langs/etc using folder ref.
Now there's no need to change the project file when adding a new language or style.
1 parent b8129b7 commit fff0af4

File tree

8 files changed

+32
-57
lines changed

8 files changed

+32
-57
lines changed

QLColorCode.xcodeproj/project.pbxproj

Lines changed: 11 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,11 @@
2626
0E8776580D08E004005040B4 /* Common.m in Sources */ = {isa = PBXBuildFile; fileRef = 0E8776560D08E004005040B4 /* Common.m */; };
2727
0E8776B70D08ED64005040B4 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0E8776B60D08ED64005040B4 /* WebKit.framework */; };
2828
0E8776BD0D08EDA4005040B4 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0E8776BC0D08EDA4005040B4 /* AppKit.framework */; };
29-
0E913A0A0D10B8060067BAD6 /* filetypes.conf in Copy .conf Files */ = {isa = PBXBuildFile; fileRef = 0E913A090D10B8060067BAD6 /* filetypes.conf */; };
29+
0E8FBB64141DA09D00269094 /* override in Resources */ = {isa = PBXBuildFile; fileRef = 0E8FBB56141DA09D00269094 /* override */; };
3030
0EB495D50D0FB13C00E86E0B /* colorize.sh in Resources */ = {isa = PBXBuildFile; fileRef = 0ECBBB5D0CFD447E00416538 /* colorize.sh */; };
31-
0EB496B10D0FC70D00E86E0B /* ml.lang in Copy .lang Files */ = {isa = PBXBuildFile; fileRef = 0EB4960D0D0FC24000E86E0B /* ml.lang */; };
3231
0EC047970CFBDADF009C986E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0EC047960CFBDADF009C986E /* Foundation.framework */; };
3332
0ECBBA6C0CFCA37500416538 /* QLColorCode.qlgenerator in Copy to Library */ = {isa = PBXBuildFile; fileRef = 8D576316048677EA00EA77CD /* QLColorCode.qlgenerator */; };
3433
0EE90E861098CE5800468467 /* Script notes.txt in Resources */ = {isa = PBXBuildFile; fileRef = 0EE90E851098CE5800468467 /* Script notes.txt */; };
35-
0EF57D440D122791006084D5 /* ide-xcode.style in Copy .style Files */ = {isa = PBXBuildFile; fileRef = 0EF57D430D122791006084D5 /* ide-xcode.style */; };
36-
0EF57D6E0D122934006084D5 /* objc.lang in Copy .lang Files */ = {isa = PBXBuildFile; fileRef = 0EF57D6D0D122934006084D5 /* objc.lang */; };
37-
0EF57E6A0D125AB2006084D5 /* slateGreen.style in Copy .style Files */ = {isa = PBXBuildFile; fileRef = 0EF57E690D125AB2006084D5 /* slateGreen.style */; };
38-
0EF57F2F0D128219006084D5 /* c.lang in Copy .lang Files */ = {isa = PBXBuildFile; fileRef = 0EF57F2E0D128219006084D5 /* c.lang */; };
3934
2C05A19C06CAA52B00D84F6F /* GeneratePreviewForURL.m in Sources */ = {isa = PBXBuildFile; fileRef = 2C05A19B06CAA52B00D84F6F /* GeneratePreviewForURL.m */; };
4035
61E3BCFB0870B4F2002186A0 /* GenerateThumbnailForURL.m in Sources */ = {isa = PBXBuildFile; fileRef = 61E3BCFA0870B4F2002186A0 /* GenerateThumbnailForURL.m */; };
4136
8D576312048677EA00EA77CD /* main.c in Sources */ = {isa = PBXBuildFile; fileRef = 08FB77B6FE84183AC02AAC07 /* main.c */; settings = {ATTRIBUTES = (); }; };
@@ -57,30 +52,6 @@
5752
/* End PBXContainerItemProxy section */
5853

5954
/* Begin PBXCopyFilesBuildPhase section */
60-
0E913A110D10B84D0067BAD6 /* Copy .conf Files */ = {
61-
isa = PBXCopyFilesBuildPhase;
62-
buildActionMask = 2147483647;
63-
dstPath = override/config;
64-
dstSubfolderSpec = 7;
65-
files = (
66-
0E913A0A0D10B8060067BAD6 /* filetypes.conf in Copy .conf Files */,
67-
);
68-
name = "Copy .conf Files";
69-
runOnlyForDeploymentPostprocessing = 0;
70-
};
71-
0EB496B00D0FC68300E86E0B /* Copy .lang Files */ = {
72-
isa = PBXCopyFilesBuildPhase;
73-
buildActionMask = 2147483647;
74-
dstPath = override/langDefs;
75-
dstSubfolderSpec = 7;
76-
files = (
77-
0EF57F2F0D128219006084D5 /* c.lang in Copy .lang Files */,
78-
0EF57D6E0D122934006084D5 /* objc.lang in Copy .lang Files */,
79-
0EB496B10D0FC70D00E86E0B /* ml.lang in Copy .lang Files */,
80-
);
81-
name = "Copy .lang Files";
82-
runOnlyForDeploymentPostprocessing = 0;
83-
};
8455
0ECBBA6F0CFCA39E00416538 /* Copy to Library */ = {
8556
isa = PBXCopyFilesBuildPhase;
8657
buildActionMask = 12;
@@ -92,18 +63,6 @@
9263
name = "Copy to Library";
9364
runOnlyForDeploymentPostprocessing = 0;
9465
};
95-
0EF57D6C0D1228E3006084D5 /* Copy .style Files */ = {
96-
isa = PBXCopyFilesBuildPhase;
97-
buildActionMask = 2147483647;
98-
dstPath = override/themes;
99-
dstSubfolderSpec = 7;
100-
files = (
101-
0EF57E6A0D125AB2006084D5 /* slateGreen.style in Copy .style Files */,
102-
0EF57D440D122791006084D5 /* ide-xcode.style in Copy .style Files */,
103-
);
104-
name = "Copy .style Files";
105-
runOnlyForDeploymentPostprocessing = 0;
106-
};
10766
/* End PBXCopyFilesBuildPhase section */
10867

10968
/* Begin PBXFileReference section */
@@ -115,20 +74,15 @@
11574
0E8776560D08E004005040B4 /* Common.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Common.m; sourceTree = "<group>"; };
11675
0E8776B60D08ED64005040B4 /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = SDKs/MacOSX10.5.sdk/System/Library/Frameworks/WebKit.framework; sourceTree = DEVELOPER_DIR; };
11776
0E8776BC0D08EDA4005040B4 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AppKit.framework; sourceTree = DEVELOPER_DIR; };
118-
0E913A090D10B8060067BAD6 /* filetypes.conf */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = filetypes.conf; sourceTree = "<group>"; };
119-
0EB4960D0D0FC24000E86E0B /* ml.lang */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ml.lang; sourceTree = "<group>"; };
77+
0E8FBB56141DA09D00269094 /* override */ = {isa = PBXFileReference; lastKnownFileType = folder; path = override; sourceTree = "<group>"; };
12078
0EC047960CFBDADF009C986E /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; };
12179
0EC047F20CFC000A009C986E /* Notes.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Notes.txt; sourceTree = "<group>"; };
12280
0ECBBB360CFCF98600416538 /* ReadMe.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ReadMe.txt; sourceTree = "<group>"; };
12381
0ECBBB5D0CFD447E00416538 /* colorize.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = colorize.sh; sourceTree = "<group>"; };
12482
0EE90E6F1098BE1E00468467 /* Disable XCode QL Plugin.scpt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.scpt; path = "Disable XCode QL Plugin.scpt"; sourceTree = "<group>"; };
12583
0EE90E841098CDDF00468467 /* Restore XCode QL Plugin.scpt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.scpt; path = "Restore XCode QL Plugin.scpt"; sourceTree = "<group>"; };
12684
0EE90E851098CE5800468467 /* Script notes.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "Script notes.txt"; sourceTree = "<group>"; };
127-
0EF57D430D122791006084D5 /* ide-xcode.style */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "ide-xcode.style"; sourceTree = "<group>"; };
128-
0EF57D6D0D122934006084D5 /* objc.lang */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = objc.lang; sourceTree = "<group>"; };
12985
0EF57E4D0D123DD0006084D5 /* LICENSE.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE.txt; sourceTree = "<group>"; };
130-
0EF57E690D125AB2006084D5 /* slateGreen.style */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = slateGreen.style; sourceTree = "<group>"; };
131-
0EF57F2E0D128219006084D5 /* c.lang */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = c.lang; sourceTree = "<group>"; };
13286
2C05A19B06CAA52B00D84F6F /* GeneratePreviewForURL.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratePreviewForURL.m; sourceTree = "<group>"; };
13387
61E3BCFA0870B4F2002186A0 /* GenerateThumbnailForURL.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = GenerateThumbnailForURL.m; sourceTree = "<group>"; };
13488
8D576316048677EA00EA77CD /* QLColorCode.qlgenerator */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = QLColorCode.qlgenerator; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -189,12 +143,7 @@
189143
089C167CFE841241C02AAC07 /* Resources */ = {
190144
isa = PBXGroup;
191145
children = (
192-
0EF57F2E0D128219006084D5 /* c.lang */,
193-
0EB4960D0D0FC24000E86E0B /* ml.lang */,
194-
0EF57D6D0D122934006084D5 /* objc.lang */,
195-
0EF57D430D122791006084D5 /* ide-xcode.style */,
196-
0EF57E690D125AB2006084D5 /* slateGreen.style */,
197-
0E913A090D10B8060067BAD6 /* filetypes.conf */,
146+
0E8FBB56141DA09D00269094 /* override */,
198147
8D576317048677EA00EA77CD /* Info.plist */,
199148
8D5B49A704867FD3000E48DA /* InfoPlist.strings */,
200149
);
@@ -254,9 +203,6 @@
254203
8D57630F048677EA00EA77CD /* Resources */,
255204
8D576311048677EA00EA77CD /* Sources */,
256205
8D576313048677EA00EA77CD /* Frameworks */,
257-
0EB496B00D0FC68300E86E0B /* Copy .lang Files */,
258-
0EF57D6C0D1228E3006084D5 /* Copy .style Files */,
259-
0E913A110D10B84D0067BAD6 /* Copy .conf Files */,
260206
0E9139D70D10A8320067BAD6 /* Install highlight */,
261207
0ECBBA6F0CFCA39E00416538 /* Copy to Library */,
262208
0E1280381061C3EA0078EC05 /* Reset quicklookd */,
@@ -278,7 +224,14 @@
278224
isa = PBXProject;
279225
buildConfigurationList = 2CA326220896AD4900168862 /* Build configuration list for PBXProject "QLColorCode" */;
280226
compatibilityVersion = "Xcode 3.0";
227+
developmentRegion = English;
281228
hasScannedForEncodings = 1;
229+
knownRegions = (
230+
English,
231+
Japanese,
232+
French,
233+
German,
234+
);
282235
mainGroup = 089C166AFE841209C02AAC07 /* QLColorCode */;
283236
projectDirPath = "";
284237
projectRoot = "";
@@ -297,6 +250,7 @@
297250
0EB495D50D0FB13C00E86E0B /* colorize.sh in Resources */,
298251
8D5B49A804867FD3000E48DA /* InfoPlist.strings in Resources */,
299252
0EE90E861098CE5800468467 /* Script notes.txt in Resources */,
253+
0E8FBB64141DA09D00269094 /* override in Resources */,
300254
);
301255
runOnlyForDeploymentPostprocessing = 0;
302256
};

highlight.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/* Style definition file generated by highlight 2.12, http://www.andre-simon.de/ */
2+
3+
/* Highlighting theme definition: */
4+
5+
body.hl { background-color:#ffffff; }
6+
pre.hl { color:#000000; background-color:#ffffff; font-size:10pt; font-family:'Courier New';}
7+
.hl.num { color:#2928ff; }
8+
.hl.esc { color:#ff00ff; }
9+
.hl.str { color:#ff0000; }
10+
.hl.dstr { color:#818100; }
11+
.hl.slc { color:#838183; font-style:italic; }
12+
.hl.com { color:#838183; font-style:italic; }
13+
.hl.dir { color:#008200; }
14+
.hl.sym { color:#000000; }
15+
.hl.line { color:#555555; }
16+
.hl.mark { background-color:#ffffbb;}
17+
.hl.kwa { color:#000000; font-weight:bold; }
18+
.hl.kwb { color:#830000; }
19+
.hl.kwc { color:#000000; font-weight:bold; }
20+
.hl.kwd { color:#010181; }
21+
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)