forked from n8gray/QLColorCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReadMe.txt
More file actions
37 lines (29 loc) · 1.59 KB
/
ReadMe.txt
File metadata and controls
37 lines (29 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
QLColorCode
===========
<http://code.google.com/p/qlcolorcode/>
This is a Quick Look plugin that renders source code with syntax highlighting,
using the Pygments library: <http://pygments.org>
To install the plugin, just drag it to /Library/QuickLook or ~/Library/QuickLook.
You may need to create that folder if it doesn't already exist.
If you want to change the style of the syntax highlighting, take a look at
colorize.sh in the bundle's Resources folder. I'm using a slightly modified
version of the autumn style called nautumn.
Pygments can handle lots and lots of languages, but this plugin will only be
invoked for file types that the OS knows are type "source-code". Since the OS
only knows about a limited number of languages, I've added Universal Type
Identifier (UTI) declarations for several "interesting" languages. If I've
missed your favorite language, take a look at the Info.plist file inside the
plugin bundle and look for the UTImportedTypeDeclarations section. I
haven't added all the languages that Pygments can handle because it's rumored
that having two conflicting UTI declarations for the same file extension can
cause problems.
To build from source, you need the Pygments library. Download the .tar.gz
version of their source and uncompress it somewhere, then make a symbolic link
to that location from ./pygments-src
After that you should be able to build as usual from Xcode.
As an aside, by changing colorize.sh you can use this plugin to render any file
type that you can convert to HTML. Have fun, and let me know if you do anything
cool!
Cheers,
-n8
n8gray /at/ n8gray \dot\ org