Skip to content

Commit 3fbbd03

Browse files
committed
Added support for textEncoding option, with default UTF-8.
1 parent 9829aa5 commit 3fbbd03

4 files changed

Lines changed: 8 additions & 2 deletions

File tree

ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
1.1: (in progress)
2+
* Added support for "textEncoding" option to set encoding, with default UTF-8.
3+
14
1.0:
25
* Hopefully fixed the crasher bug by keeping us single-threaded
36
* Added Actionscript, Lisp, IDL, Verilog, VHDL, XHTML (any others I forgot?)

Common.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@
6969
@"Monaco", @"font",
7070
@"ide-xcode", @"hlTheme",
7171
@"", @"extraHLFlags",
72-
@"", @"maxFileSize", nil]];
72+
@"", @"maxFileSize",
73+
@"UTF-8", @"textEncoding", nil]];
7374
[env addEntriesFromDictionary:[defaults persistentDomainForName:myDomain]];
7475

7576
NSString *cmd = [NSString stringWithFormat:

ReadMe.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ You may need to create that folder if it doesn't already exist.
1111
If you want to configure QLColorCode, there are several "defaults" commands
1212
that could be useful:
1313

14+
Setting the text encoding (default is UTF-8):
15+
defaults write org.n8gray.QLColorCode textEncoding UTF-16
1416
Setting the font:
1517
defaults write org.n8gray.QLColorCode font Monaco
1618
the font size:

colorize.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ hlDir=$rsrcDir/highlight
2727
cmd=$hlDir/bin/highlight
2828
cmdOpts=(-I --font $font --quiet --add-data-dir $rsrcDir/override \
2929
--data-dir $rsrcDir/highlight/share/highlight --style $hlTheme \
30-
--font-size $fontSizePoints ${=extraHLFlags})
30+
--font-size $fontSizePoints --encoding $textEncoding ${=extraHLFlags})
3131

3232
#for o in $cmdOpts; do echo $o\<br/\>; done
3333

0 commit comments

Comments
 (0)