Skip to content

Commit 62613c4

Browse files
committed
Support for .R files.
1 parent 8b540b3 commit 62613c4

File tree

8 files changed

+62
-20
lines changed

8 files changed

+62
-20
lines changed

Application/Info.plist

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<string>com.apple.applescript.script</string>
2020
<string>com.apple.applescript.text</string>
2121
<string>com.apple.property-list</string>
22+
<string>com.apple.rez-source</string>
2223
<string>com.barebones.bbedit.scss-source</string>
2324
<string>com.barebones.bbedit.verilog-hdl-source</string>
2425
<string>com.barebones.bbedit.vhdl-source</string>
@@ -235,23 +236,6 @@
235236
</array>
236237
</dict>
237238
</dict>
238-
<dict>
239-
<key>UTTypeConformsTo</key>
240-
<array>
241-
<string>public.source-code</string>
242-
</array>
243-
<key>UTTypeDescription</key>
244-
<string>ASCR files</string>
245-
<key>UTTypeIdentifier</key>
246-
<string>org.applescript.source</string>
247-
<key>UTTypeTagSpecification</key>
248-
<dict>
249-
<key>public.filename-extension</key>
250-
<array>
251-
<string>ascr</string>
252-
</array>
253-
</dict>
254-
</dict>
255239
<dict>
256240
<key>UTTypeConformsTo</key>
257241
<array>
@@ -472,6 +456,23 @@
472456
<string>md</string>
473457
</dict>
474458
</dict>
459+
<dict>
460+
<key>UTTypeConformsTo</key>
461+
<array>
462+
<string>public.source-code</string>
463+
</array>
464+
<key>UTTypeDescription</key>
465+
<string>ASCR files</string>
466+
<key>UTTypeIdentifier</key>
467+
<string>org.applescript.source</string>
468+
<key>UTTypeTagSpecification</key>
469+
<dict>
470+
<key>public.filename-extension</key>
471+
<array>
472+
<string>ascr</string>
473+
</array>
474+
</dict>
475+
</dict>
475476
<dict>
476477
<key>UTTypeConformsTo</key>
477478
<array>
@@ -1412,6 +1413,24 @@
14121413
</array>
14131414
<key>UTImportedTypeDeclarations</key>
14141415
<array>
1416+
<dict>
1417+
<key>UTTypeConformsTo</key>
1418+
<array>
1419+
<string>public.source-code</string>
1420+
<string>public.plain-text</string>
1421+
</array>
1422+
<key>UTTypeDescription</key>
1423+
<string>R source file</string>
1424+
<key>UTTypeIdentifier</key>
1425+
<string>com.apple.rez-source</string>
1426+
<key>UTTypeTagSpecification</key>
1427+
<dict>
1428+
<key>public.filename-extension</key>
1429+
<array>
1430+
<string>r</string>
1431+
</array>
1432+
</dict>
1433+
</dict>
14151434
<dict>
14161435
<key>UTTypeConformsTo</key>
14171436
<array>
Binary file not shown.

Application/examples/example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
<body>
1010
<h1>head 1</h1>
1111
<p><br><b><IMG border=0 height=12 src="images/hg.gif" width=18 >
12-
Hallo world? &#x00B7; &Alpha; </b><br><br>
12+
Hello world? &#x00B7; &Alpha; </b><br><br>
1313
</body>
1414
</html>

Application/examples/example.r

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
install.packages("caTools") # install external package
2+
library(caTools) # external package providing write.gif function
3+
jet.colors <- colorRampPalette(c("red", "blue", "#007FFF", "cyan", "#7FFF7F",
4+
"yellow", "#FF7F00", "red", "#7F0000"))
5+
dx <- 1500 # define width
6+
dy <- 1400 # define height
7+
C <- complex(real = rep(seq(-2.2, 1.0, length.out = dx), each = dy),
8+
imag = rep(seq(-1.2, 1.2, length.out = dy), dx))
9+
C <- matrix(C, dy, dx) # reshape as square matrix of complex numbers
10+
Z <- 0 # initialize Z to zero
11+
X <- array(0, c(dy, dx, 20)) # initialize output 3D array
12+
for (k in 1:20) { # loop with 20 iterations
13+
Z <- Z^2 + C # the central difference equation
14+
X[, , k] <- exp(-abs(Z)) # capture results
15+
}
16+
write.gif(X, "Mandelbrot.gif", col = jet.colors, delay = 100)

CHANGELOG.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
1.0.b14
2+
3+
New features:
4+
- merge pull request https://github.com/sbarex/SourceCodeSyntaxHighlight/pull/18 (support for awk, bash, clojure, diff, haskell, lua, patch, rust, scala, text, zsh)
5+
- added support for .r file format.
6+
17
1.0.b13
28

39
New features:

QLExtension/Info.plist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
<string>com.apple.applescript.script</string>
3737
<string>com.apple.applescript.text</string>
3838
<string>com.apple.property-list</string>
39+
<string>com.apple.rez-source</string>
3940
<string>com.barebones.bbedit.scss-source</string>
4041
<string>com.barebones.bbedit.verilog-hdl-source</string>
4142
<string>com.barebones.bbedit.vhdl-source</string>

SourceCodeSyntaxHighlight.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@
821821
CODE_SIGN_IDENTITY = "-";
822822
CODE_SIGN_STYLE = Manual;
823823
COMBINE_HIDPI_IMAGES = YES;
824-
CURRENT_PROJECT_VERSION = 13;
824+
CURRENT_PROJECT_VERSION = 14;
825825
DEVELOPMENT_TEAM = "";
826826
ENABLE_HARDENED_RUNTIME = YES;
827827
INFOPLIST_FILE = Application/Info.plist;
@@ -846,7 +846,7 @@
846846
CODE_SIGN_IDENTITY = "-";
847847
CODE_SIGN_STYLE = Manual;
848848
COMBINE_HIDPI_IMAGES = YES;
849-
CURRENT_PROJECT_VERSION = 13;
849+
CURRENT_PROJECT_VERSION = 14;
850850
DEVELOPMENT_TEAM = "";
851851
ENABLE_HARDENED_RUNTIME = YES;
852852
INFOPLIST_FILE = Application/Info.plist;

0 commit comments

Comments
 (0)