diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..d9ed053
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,6 @@
+[submodule "hl/highlight"]
+ path = hl/highlight
+ url = https://gitlab.com/saalen/highlight.git
+[submodule "hl/lua"]
+ path = hl/lua
+ url = https://github.com/lua/lua.git
diff --git a/.travis.yml b/.travis.yml
index e384eea..b8ab0cf 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,3 +1,6 @@
+addons:
+ homebrew:
+ packages:
+ - boost
language: objective-c
-xcode_project: QLColorCode.xcodeproj
-xcode_scheme: Travis
+script: set -o pipefail && xcodebuild -project QLColorCode.xcodeproj -scheme Travis build | xcpretty
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ee80225..945913f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,16 +2,57 @@
All notable changes to this project will be documented in this file.
-The format is based on [Keep a Changelog](http://keepachangelog.com/fr/1.0.0/)
-and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
+The format is based on [Keep a Changelog](http://keepachangelog.com/fr/1.0.0/) and this project adheres to
+[Semantic Versioning](http://semver.org/spec/v2.0.0.html).
+
## [Unreleased]
+- NOTHING
+
+## [4.1.0] — 2020-12-17
+
+### Changed
+
+- Compilation of `highlight`/`lua` (thanks @Tatsh).
+
+## [4.0.3] — 2020-12-17
+
+### Added
+
+- `xsl` support.
+
+## [4.0.2] — 2020-12-16
+
+### Fixed
+
+- Version number in the final binary.
+
+## [4.0.1] — 2020-12-16
+
+### Added
+
+- `tf` support.
+
+### Fixed
+
+- CI (thanks @jeffbyrnes).
+
+## [4.0.0] — 2020-12-15
+
+**Big Sur support via integrated Lua and Highlight!
+Thanks to @tatsh for his amazing work!**
+
### Added
- `ruby` support.
- `lisp` support.
- `automake` support.
+- `powershell` support (thanks @abulgatz).
+
+### Fixed
+
+- CI (thanks @tatsh).
## [3.1.1] — 2020-09-09
@@ -28,14 +69,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- `kts` (kotlin) support.
- `xsh` support.
-- `pyc` support (decompilation with `uncompyle6` [has to be in `/usr/local/bin`])
+- `pyc` support (decompilation with `uncompyle6` [has to be in `/usr/local/bin`]).
- `rst` support.
- `perl` support.
- `bats` (Bash Automated Testing System) support.
### Fixed
-- `fish` support.
+- `fish` support.
- `bat` (Windows Batch) support.
- `diff` support.
- `bash` support.
@@ -70,7 +111,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- `jad` support.
-
## [3.0.0] — 2020-08-16
### Added
@@ -93,7 +133,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Added
-- Option to preview file as `RTF` (thanks @silum).
+- Option to preview file as `RTF` (thanks @silum).
- `Kotlin/Gradle` (thanks @sonique6784).
- `C#/Scala` support.
- `reduce_filesize` plugin by default.
@@ -172,14 +212,12 @@ First version of Anthony GELIBERT.
### Added
-- Added qlcc_debug option. To enable, use:
- `defaults write org.n8gray.qlcolorcode qlcc_debug 1`
-To disable, use:
- `defaults delete org.n8gray.qlcolorcode qlcc_debug`
+- Added qlcc_debug option. To enable, use: `defaults write org.n8gray.qlcolorcode qlcc_debug 1` To disable, use:
+ `defaults delete org.n8gray.qlcolorcode qlcc_debug`
### Changed
-- Stop redirecting `stdout` of `colorize.sh` to `stdin`. Error output will appear in the console instead of the preview.
+- Stop redirecting `stdout` of `colorize.sh` to `stdin`. Error output will appear in the console instead of the preview.
### Fixed
@@ -189,13 +227,14 @@ To disable, use:
### Added
-- A note about conflict with Xcode 3.2's source code QL plugin. If you're having problems with QLCC on Snow Leopard please read it!
+- A note about conflict with Xcode 3.2's source code QL plugin. If you're having problems with QLCC on Snow Leopard
+ please read it!
- Support for `Scala`, `Groovy`, `Interactive Data Language`, and `Coldfusion`.
- Build for `x86_64` in addition to `i386` and `ppc`.
### Changed
-- Upgrade `highlight` from `2.6.6` to `2.12` -- This was long overdue. It's nice not to have to patch highlight anymore!
+- Upgrade `highlight` from `2.6.6` to `2.12` -- This was long overdue. It's nice not to have to patch highlight anymore!
### Removed
@@ -209,7 +248,9 @@ To disable, use:
### Added
-- Enabled "safe" plain-text handling. In other words, files like foo.txt will be supported, but not files without extensions. The only way to handle extensionless files is to handle -everything-. This can be done, but it requires a more defensive style of operation.
+- Enabled "safe" plain-text handling. In other words, files like foo.txt will be supported, but not files without
+ extensions. The only way to handle extensionless files is to handle -everything-. This can be done, but it requires a
+ more defensive style of operation.
- Support for `textEncoding` option to set encoding for highlight portion of renderer, with default `UTF-8`.
- Support for `webkitTextEncoding` option to set encoding for webkit portion of renderer, with default `UTF-8`.
- Support for `.cs`, `.el`, `.jnlp` (xml), `.e` (eiffel), and `.vb`.
@@ -222,7 +263,7 @@ To disable, use:
### Added
-- `Actionscript`, `Lisp`, `IDL`, `Verilog`, `VHDL`, `XHTML` (any others I forgot?).
+- `Actionscript`, `Lisp`, `IDL`, `Verilog`, `VHDL`, `XHTML` (any others I forgot?).
- `.cls` and `.sty` as LaTeX extensions.
- `maxFileSize` option to keep us from hanging on huge files.
@@ -270,7 +311,7 @@ To disable, use:
### Changed
-- Switched from Pygments to Highlight. This should increase speed-and-language coverage.
+- Switched from Pygments to Highlight. This should increase speed-and-language coverage.
- Changed `.tex` `UTI` to agree with TeXShop's.
- (Try to) let the system pick a different plugin if ours fails.
diff --git a/Info.plist b/Info.plist
index a7721f1..2960ed6 100644
--- a/Info.plist
+++ b/Info.plist
@@ -1,1358 +1,151 @@
-
- CFBundleDevelopmentRegion
- English
- CFBundleDocumentTypes
-
-
- CFBundleTypeName
-
- CFBundleTypeRole
- QLGenerator
- LSItemContentTypes
-
- public.source-code
- public.ruby-script
- public.yaml
- public.php-script
- com.netscape.javascript-source
- com.microsoft.c-sharp
- com.microsoft.f-sharp
- public.css
- com.apple.applescript.script
- public.xml
- com.apple.property-list
- org.tug.tex
- com.sun.java-class
- com.sun.java-source
- org.vim.vim-script
- org.tug.lua
- public.tex
- public.text
- public.shell-script
- public.c-header
- public.objective-c-source
- public.c-source
- public.c-plus-plus-source
- public.c-plus-plus-header
- public.objective-c-plus-plus-source
- public.assembly-source
- com.apple.rez-source
- public.mig-source
- public.swift-source
- public.pascal-source
- com.apple.symbol-export
- public.csh-script
- public.zsh-script
- com.apple.terminal.shell-script
- com.apple.terminal.session
- com.apple.terminal.settings
- public.python-script
- com.apple.xcode.strings-text
- dyn.ah62d4rv4ge81g6pq
- dyn.ah62d4rv4ge8007a
- dyn.ah62d4rv4ge80s6xbqv0gn
- dyn.ah62d4rv4ge81g25brvuu
- dyn.ah62d4rv4ge80g62
- dyn.ah62d4rv4ge80w5pq
- dyn.ah62d4rv4ge80s52
- dyn.ah62d4rv4ge80g2pcqf0a
- dyn.ah62d4rv4ge81e62
- dyn.ah62d4rv4ge80u62
- dyn.ah62d4rv4ge80g6u
- dyn.ah62d4rv4ge80g3xh
- dyn.ah62d4rv4ge81q7pf
- dyn.ah62d4rv4ge81a6xtsbw1e7dmqz3u
- dyn.ah62d4rv4ge80e2p4qz0a
- dyn.ah62d4rv4ge80e8xq
- dyn.ah62d4rv4ge81u65e
- dyn.ah62d4rv4ge81u6pzqz3hw
- org.vim.xsl-file
- dyn.ah62d4rv4ge81u7k
- dyn.ah62d4rv4ge81u6pr
- dyn.ah62d4rv4ge81u6k
- dyn.ah62d4rv4ge8007dx
- dyn.ah62d4rv4ge80e2py
- dyn.ah62d4rv4ge80q4pxra
- dyn.ah62d4rv4ge81u65k
- dyn.ah62d4rv4ge81a8pd
- dyn.ah62d4rv4ge81e65y
- dyn.ah62d4rv4ge80n5a
- dyn.ah62d4rv4ge80w5u
- dyn.ah62d4rv4ge81k
- dyn.ah62d4rv4ge80c5k
- dyn.ah62d4rv4ge80c3dtqq
- public.perl-script
- dyn.ah62d4rv4ge80e2pysq
- public.patch-file
- public.bash-script
- com.apple.xcode.bash-script
- com.apple.xcode.csh-script
- com.apple.xcode.ksh-script
- com.apple.xcode.tcsh-script
- com.apple.xcode.yacc-source
- com.apple.xcode.zsh-script
-
-
-
- CFBundleExecutable
- ${EXECUTABLE_NAME}
- CFBundleIconFile
-
- CFBundleIdentifier
- $(PRODUCT_BUNDLE_IDENTIFIER)
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- ${PRODUCT_NAME}
- CFBundleShortVersionString
- $(MARKETING_VERSION)
- CFBundleVersion
- $(CURRENT_PROJECT_VERSION)
- CFPlugInDynamicRegisterFunction
-
- CFPlugInDynamicRegistration
- NO
- CFPlugInFactories
- C044543D-70A1-46D8-A908-4B8AEA1197A4
- QuickLookGeneratorPluginFactory
-
- CFPlugInTypes
-
- 5E2D9680-5022-40FA-B806-43349622E5B9
+ CFBundleDevelopmentRegion
+ English
+ CFBundleDocumentTypes
- C044543D-70A1-46D8-A908-4B8AEA1197A4
-
-
- CFPlugInUnloadFunction
-
- QLNeedsToBeRunInMainThread
-
- QLPreviewHeight
- 800
- QLPreviewWidth
- 800
- QLSupportsConcurrentRequests
-
- QLThumbnailMinimumSize
- 9
- UTImportedTypeDeclarations
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- Logos Source File
- UTTypeIdentifier
- com.dhowett.logos
- UTTypeTagSpecification
-
- public.filename-extension
-
- xm
-
-
-
-
- UTTypeIdentifier
- org.ocaml.ocaml-source
- UTTypeReferenceURL
- http://www.ocaml.org/
- UTTypeTagSpecification
-
- public.filename-extension
-
- ml
- mll
- mly
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- OCaml Interface File
- UTTypeIdentifier
- org.ocaml.ocaml-interface
- UTTypeReferenceURL
- http://www.ocaml.org/
- UTTypeTagSpecification
-
- public.filename-extension
-
- mli
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- Haskell Source File
- UTTypeIdentifier
- org.haskell.haskell-source
- UTTypeReferenceURL
- http://www.haskell.org/
- UTTypeTagSpecification
-
- public.filename-extension
-
- hs
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- Literate Haskell Source File
- UTTypeIdentifier
- org.haskell.literate-haskell-source
- UTTypeReferenceURL
- http://www.haskell.org/
- UTTypeTagSpecification
-
- public.filename-extension
-
- lhs
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- scheme Source File
- UTTypeIdentifier
- org.n8gray.scheme-source
- UTTypeTagSpecification
-
- public.filename-extension
-
- scm
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- .ini Source File
- UTTypeIdentifier
- org.n8gray.ini-source
- UTTypeTagSpecification
-
- public.filename-extension
-
- ini
-
- public.mime-type
- text/x-ini
-
-
-
- UTTypeConformsTo
-
- public.tex
-
- UTTypeDescription
- TeX text file
- UTTypeIdentifier
- public.tex
- UTTypeTagSpecification
-
- public.filename-extension
-
- tex
- latex
- ltx
- texi
- ctx
- sty
- cls
-
-
-
-
- UTTypeConformsTo
-
- public.yaml
-
- UTTypeDescription
- YAML file
- UTTypeIdentifier
- public.yaml
- UTTypeTagSpecification
-
- public.filename-extension
-
- yaml
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- Erlang Source File
- UTTypeIdentifier
- org.erlang.erlang-source
- UTTypeTagSpecification
-
- public.filename-extension
-
- erl
- hrl
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- Standard ML Source File
- UTTypeIdentifier
- org.n8gray.standard-ml-source
- UTTypeTagSpecification
-
- public.filename-extension
-
- sml
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
- dyn.ah62d4rv4ge81g6pq
-
- UTTypeDescription
- SQL Source File
- UTTypeIdentifier
- org.n8gray.structured-query-language-source
- UTTypeTagSpecification
-
- public.filename-extension
-
- sql
-
-
-
-
- UTTypeConformsTo
-
- public.script
- public.patch-file
-
- UTTypeDescription
- Diff File
- UTTypeIdentifier
- org.n8gray.diff-script
- UTTypeTagSpecification
-
- public.filename-extension
-
- diff
- patch
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- CSS File
- UTTypeIdentifier
- public.css
- UTTypeTagSpecification
-
- public.filename-extension
-
- css
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- Lua Source File
- UTTypeIdentifier
- org.lua.lua-source
- UTTypeTagSpecification
-
- public.filename-extension
-
- lua
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- Tcl Source File
- UTTypeIdentifier
- tk.tcl.tcl-source
- UTTypeTagSpecification
-
- public.filename-extension
-
- tcl
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- JSP Source File
- UTTypeIdentifier
- org.n8gray.jsp-source
- UTTypeTagSpecification
-
- public.filename-extension
-
- jsp
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
- dyn.ah62d4rv4ge80e2py
-
- UTTypeDescription
- DOS Batch Source File
- UTTypeIdentifier
- org.n8gray.bat
- UTTypeTagSpecification
-
- public.filename-extension
-
- bat
- cmd
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- Adobe Flash ActionScript Source File
- UTTypeIdentifier
- com.adobe.actionscript
- UTTypeTagSpecification
-
- public.filename-extension
-
- as
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- Lisp Source File
- UTTypeIdentifier
- org.n8gray.lisp
- UTTypeTagSpecification
-
- public.filename-extension
-
- sb
- lisp
- lsp
- asd
- el
- clj
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
- dyn.ah62d4rv4ge80s52
-
- UTTypeDescription
- Go Source File
- UTTypeIdentifier
- org.go.source
- UTTypeTagSpecification
-
- public.filename-extension
-
- go
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- IDL Source File
- UTTypeIdentifier
- org.n8gray.idl
- UTTypeTagSpecification
-
- public.filename-extension
-
- pro
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- Makefile Source File
- UTTypeIdentifier
- org.n8gray.makefile
- UTTypeTagSpecification
-
- public.filename-extension
-
- mk
- mak
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- Verilog Source File
- UTTypeIdentifier
- org.n8gray.verilog
- UTTypeTagSpecification
-
- public.filename-extension
-
- v
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- VHDL Source File
- UTTypeIdentifier
- org.n8gray.vhdl
- UTTypeTagSpecification
-
- public.filename-extension
-
- vhdl
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- XHTML Source File
- UTTypeIdentifier
- org.n8gray.xhtml
- UTTypeTagSpecification
-
- public.filename-extension
-
- xhtml
-
-
-
-
- UTTypeConformsTo
-
- public.xml
-
- UTTypeDescription
- Java Web Installer (XML)
- UTTypeIdentifier
- org.n8gray.javaInstaller
- UTTypeTagSpecification
-
- public.filename-extension
-
- jnlp
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- Eiffel source code file
- UTTypeIdentifier
- com.eiffel.source-code
- UTTypeTagSpecification
-
- public.filename-extension
-
- e
-
-
-
-
- UTTypeConformsTo
-
- public.xml
-
- UTTypeDescription
- EiffelStudio project configuration file
- UTTypeIdentifier
- com.eiffel.eiffelstudio-project-config
- UTTypeTagSpecification
-
- public.filename-extension
-
- ecf
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- C# Source File
- UTTypeIdentifier
- com.microsoft.csharp-source
- UTTypeReferenceURL
- http://www.microsoft.com/
- UTTypeTagSpecification
-
- public.filename-extension
-
- cs
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- Visual Basic Source File
- UTTypeIdentifier
- com.microsoft.vb-source
- UTTypeReferenceURL
- http://www.microsoft.com/
- UTTypeTagSpecification
- public.filename-extension
-
- vb
+ CFBundleTypeName
+
+ CFBundleTypeRole
+ QLGenerator
+ LSItemContentTypes
+
+ dyn.ah62d4rv4ge81q4pr
+ public.source-code
+ public.ruby-script
+ public.yaml
+ public.php-script
+ com.netscape.javascript-source
+ com.microsoft.c-sharp
+ com.microsoft.f-sharp
+ public.css
+ com.apple.applescript.script
+ public.xml
+ com.apple.property-list
+ org.tug.tex
+ com.sun.java-class
+ com.sun.java-source
+ org.vim.vim-script
+ org.tug.lua
+ public.tex
+ public.text
+ public.shell-script
+ public.c-header
+ public.objective-c-source
+ public.c-source
+ public.c-plus-plus-source
+ public.c-plus-plus-header
+ public.objective-c-plus-plus-source
+ public.assembly-source
+ com.apple.rez-source
+ public.mig-source
+ public.swift-source
+ public.pascal-source
+ com.apple.symbol-export
+ public.csh-script
+ public.zsh-script
+ com.apple.terminal.shell-script
+ com.apple.terminal.session
+ com.apple.terminal.settings
+ public.python-script
+ com.apple.xcode.strings-text
+ dyn.ah62d4rv4ge81g6pq
+ dyn.ah62d4rv4ge8007a
+ dyn.ah62d4rv4ge80s6xbqv0gn
+ dyn.ah62d4rv4ge81g25brvuu
+ dyn.ah62d4rv4ge80g62
+ dyn.ah62d4rv4ge80w5pq
+ dyn.ah62d4rv4ge80s52
+ dyn.ah62d4rv4ge80g2pcqf0a
+ dyn.ah62d4rv4ge81e62
+ dyn.ah62d4rv4ge80u62
+ dyn.ah62d4rv4ge80g6u
+ dyn.ah62d4rv4ge80g3xh
+ dyn.ah62d4rv4ge81q7pf
+ dyn.ah62d4rv4ge81a6xtsbw1e7dmqz3u
+ dyn.ah62d4rv4ge80e2p4qz0a
+ dyn.ah62d4rv4ge80e8xq
+ dyn.ah62d4rv4ge81u65e
+ dyn.ah62d4rv4ge81u6pzqz3hw
+ org.vim.xsl-file
+ dyn.ah62d4rv4ge81u7k
+ dyn.ah62d4rv4ge81u6pr
+ dyn.ah62d4rv4ge81u6k
+ dyn.ah62d4rv4ge8007dx
+ dyn.ah62d4rv4ge80e2py
+ dyn.ah62d4rv4ge80q4pxra
+ dyn.ah62d4rv4ge81u65k
+ dyn.ah62d4rv4ge81a8pd
+ dyn.ah62d4rv4ge81e65y
+ dyn.ah62d4rv4ge80n5a
+ dyn.ah62d4rv4ge80w5u
+ dyn.ah62d4rv4ge81k
+ dyn.ah62d4rv4ge80c5k
+ dyn.ah62d4rv4ge80c3dtqq
+ public.perl-script
+ dyn.ah62d4rv4ge80e2pysq
+ public.patch-file
+ public.bash-script
+ com.apple.xcode.bash-script
+ com.apple.xcode.csh-script
+ com.apple.xcode.ksh-script
+ com.apple.xcode.tcsh-script
+ com.apple.xcode.yacc-source
+ com.apple.xcode.zsh-script
+ dyn.ah62d4rv4ge81a63v
+ dyn.ah62d4rv4ge81k3x0qf3hg
+ dyn.ah62d4rv4ge81k3u
+ dyn.ah62d4rv4ge81u65q
+ dyn.ah62d4rv4ge80w5xm
+ dyn.ah62d4rv4ge8023pxsq
+ dyn.ah62d4rv4ge80g55sq2
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- Ruby on Rails File
- UTTypeIdentifier
- org.n8gray.railstemplate
- UTTypeTagSpecification
-
- public.filename-extension
-
- rhtml
- erb
- rjs
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- QLColorCode Test File
- UTTypeIdentifier
- org.n8gray.bogusextension
- UTTypeTagSpecification
-
- public.filename-extension
-
- bogus_extension
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- Groovy Source Code
- UTTypeIdentifier
- org.codehaus.groovy-source
- UTTypeTagSpecification
-
- public.filename-extension
-
- groovy
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- Scala Source Code
- UTTypeIdentifier
- org.scala.source
- UTTypeTagSpecification
-
- public.filename-extension
-
- scala
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- Coldfusion Source Code
- UTTypeIdentifier
- com.adobe.coldfusion
- UTTypeTagSpecification
-
- public.filename-extension
-
- cfc
- cfm
- cfml
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- PDE files
- UTTypeIdentifier
- org.arduino.source
- UTTypeTagSpecification
-
- public.filename-extension
-
- pde
- ino
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- ASCR files
- UTTypeIdentifier
- org.applescript.source
- UTTypeTagSpecification
-
- public.filename-extension
-
- ascr
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- RDF files
- UTTypeIdentifier
- org.rdf.source
- UTTypeTagSpecification
-
- public.filename-extension
-
- rdf
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- XUL files
- UTTypeIdentifier
- org.xul.source
- UTTypeTagSpecification
-
- public.filename-extension
-
- xul
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- INO files
- UTTypeIdentifier
- org.arduino.ino-source
- UTTypeTagSpecification
-
- public.filename-extension
-
- ino
-
-
-
-
- UTTypeConformsTo
-
- public.plain-text
-
- UTTypeDescription
- INF files
- UTTypeIdentifier
- org.microsoft.inf
- UTTypeTagSpecification
-
- public.filename-extension
-
- inf
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- MF files
- UTTypeIdentifier
- com.sun.manifest
- UTTypeTagSpecification
-
- public.filename-extension
-
- mf
-
-
-
-
- UTTypeConformsTo
-
- com.sun.java-class
-
- UTTypeDescription
- Java Class
- UTTypeIdentifier
- com.sun.java-class
- UTTypeTagSpecification
-
- public.filename-extension
-
- class
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- JavaFX ML
- UTTypeIdentifier
- com.sun.javafx
- UTTypeTagSpecification
-
- public.filename-extension
-
- fxml
-
-
-
-
- UTTypeConformsTo
-
- public.plain-text
-
- UTTypeDescription
- NFO files
- UTTypeIdentifier
- org.nfo
- UTTypeTagSpecification
-
- public.filename-extension
-
- nfo
-
-
-
-
- UTTypeConformsTo
-
- public.xml
-
- UTTypeDescription
- ECore files
- UTTypeIdentifier
- org.omg.ecore
- UTTypeTagSpecification
-
- public.filename-extension
-
- ecore
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- ATL files
- UTTypeIdentifier
- org.km3
- UTTypeTagSpecification
-
- public.filename-extension
-
- atl
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
- dyn.ah62d4rv4ge80q4pxra
-
- UTTypeDescription
- Fish source files
- UTTypeIdentifier
- org.fish.source
- UTTypeTagSpecification
-
- public.filename-extension
-
- fish
-
-
-
-
- UTTypeConformsTo
-
- dyn.ah62d4rv4ge81u65k
-
- UTTypeDescription
- XSH source files
- UTTypeIdentifier
- org.xsh.source
- UTTypeTagSpecification
-
- public.filename-extension
-
- xsh
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
- dyn.ah62d4rv4ge81e62
-
- UTTypeDescription
- Rust source files
- UTTypeIdentifier
- org.rust.source
- UTTypeTagSpecification
-
- public.filename-extension
-
- rs
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- Coffee source files
- UTTypeIdentifier
- org.coffee.source
- UTTypeTagSpecification
-
- public.filename-extension
-
- coffee
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- CSON source files
- UTTypeIdentifier
- org.cson.source
- UTTypeTagSpecification
-
- public.filename-extension
-
- cson
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
- dyn.ah62d4rv4ge80e2pysq
- public.bash-script
-
- UTTypeDescription
- Shell script
- UTTypeIdentifier
- org.bash.source
- UTTypeTagSpecification
-
- public.filename-extension
-
- bashrc
- bats
- bash
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- INNO source files
- UTTypeIdentifier
- org.inno.source
- UTTypeTagSpecification
-
- public.filename-extension
-
- iss
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- ASM source files
- UTTypeIdentifier
- org.asm.source
- UTTypeTagSpecification
-
- public.filename-extension
-
- s79
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- KERMETA source files
- UTTypeIdentifier
- org.kmt.source
- UTTypeTagSpecification
-
- public.filename-extension
-
- kmt
-
-
-
-
- UTTypeConformsTo
-
- dyn.ah62d4rv4ge8007dx
-
- UTTypeDescription
- Kotlin source files
- UTTypeIdentifier
- org.kotlin.source
- UTTypeTagSpecification
-
- public.filename-extension
-
- kts
-
-
-
-
- UTTypeConformsTo
-
- public.source-code
-
- UTTypeDescription
- GCC-linked files
- UTTypeIdentifier
- org.gcc.files
- UTTypeTagSpecification
-
- public.filename-extension
-
- ld
- map
- d
-
-
-
-
- UTTypeConformsTo
-
- dyn.ah62d4rv4ge8007a
-
- UTTypeDescription
- Kotlin Source File
- UTTypeIdentifier
- org.kotlinlang.source
- UTTypeTagSpecification
-
- public.filename-extension
-
- kt
-
-
-
-
- UTTypeConformsTo
-
- dyn.ah62d4rv4ge80s6xbqv0gn
-
- UTTypeDescription
- Gradle Source File
- UTTypeIdentifier
- org.gradle.source
- UTTypeTagSpecification
-
- public.filename-extension
-
- gradle
-
-
-
-
- UTTypeConformsTo
-
- dyn.ah62d4rv4ge80w5pq
-
- UTTypeDescription
- JetBrain Project File
- UTTypeIdentifier
- com.jetbrain.source
- UTTypeTagSpecification
-
- public.filename-extension
-
- iml
-
-
-
-
- UTTypeConformsTo
-
- dyn.ah62d4rv4ge80g2pcqf0a
-
- UTTypeDescription
- CABAL file
- UTTypeIdentifier
- public.cabal
- UTTypeTagSpecification
-
- public.filename-extension
-
- cabal
-
-
-
-
- UTTypeConformsTo
-
- dyn.ah62d4rv4ge80u62
-
- UTTypeDescription
- Haskell file
- UTTypeIdentifier
- public.haskell
- UTTypeTagSpecification
-
- public.filename-extension
-
- hs
-
-
-
-
- UTTypeConformsTo
-
- dyn.ah62d4rv4ge80g6u
-
- UTTypeDescription
- Crystal Source File
- UTTypeIdentifier
- org.crystal-lang.source
- UTTypeTagSpecification
-
- public.filename-extension
-
- cr
-
-
-
-
- UTTypeConformsTo
-
- dyn.ah62d4rv4ge81q7pf
-
- UTTypeDescription
- Vue Source File
- UTTypeIdentifier
- org.vue.source
- UTTypeTagSpecification
-
- public.filename-extension
-
- vue
-
-
-
-
- UTTypeConformsTo
-
- dyn.ah62d4rv4ge80e2p4qz0a
- dyn.ah62d4rv4ge80e8xq
-
- UTTypeDescription
- Bazel Source File
- UTTypeIdentifier
- org.bazel.source
- UTTypeTagSpecification
-
- public.filename-extension
-
- bazel
- bzl
-
-
-
-
- UTTypeConformsTo
-
- dyn.ah62d4rv4ge81u65e
- dyn.ah62d4rv4ge81u6pzqz3hw
- org.vim.xsl-file
- public.xml
- dyn.ah62d4rv4ge81u7k
- dyn.ah62d4rv4ge81u6pr
- dyn.ah62d4rv4ge81u6k
-
- UTTypeDescription
- XSD/XQuery/XSL/XML Source File
- UTTypeIdentifier
- org.xml-tools.source
- UTTypeTagSpecification
-
- public.filename-extension
-
- xsd
- xquery
- xml
- xsl
- xu
- xqm
- xq
-
-
-
-
-
+
+ CFBundleExecutable
+ ${EXECUTABLE_NAME}
+ CFBundleIconFile
+
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ ${PRODUCT_NAME}
+ CFBundleShortVersionString
+ $(MARKETING_VERSION)
+ CFBundleVersion
+ $(CURRENT_PROJECT_VERSION)
+ CFPlugInDynamicRegisterFunction
+
+ CFPlugInDynamicRegistration
+ NO
+ CFPlugInFactories
+
+ C044543D-70A1-46D8-A908-4B8AEA1197A4
+ QuickLookGeneratorPluginFactory
+
+ CFPlugInTypes
+
+ 5E2D9680-5022-40FA-B806-43349622E5B9
+
+ C044543D-70A1-46D8-A908-4B8AEA1197A4
+
+
+ CFPlugInUnloadFunction
+
+ QLNeedsToBeRunInMainThread
+
+ QLPreviewHeight
+ 800
+ QLPreviewWidth
+ 800
+ QLSupportsConcurrentRequests
+
+ QLThumbnailMinimumSize
+ 17
+
diff --git a/QLColorCode.xcodeproj/project.pbxproj b/QLColorCode.xcodeproj/project.pbxproj
index afa9935..91aadb5 100644
--- a/QLColorCode.xcodeproj/project.pbxproj
+++ b/QLColorCode.xcodeproj/project.pbxproj
@@ -19,10 +19,26 @@
name = Package;
productName = Package;
};
+ 26653B3A258B55350021CDD8 /* Copy lua.hpp */ = {
+ isa = PBXAggregateTarget;
+ buildConfigurationList = 26653B3B258B55350021CDD8 /* Build configuration list for PBXAggregateTarget "Copy lua.hpp" */;
+ buildPhases = (
+ 26653B41258B55390021CDD8 /* ShellScript */,
+ );
+ dependencies = (
+ );
+ name = "Copy lua.hpp";
+ productName = "Copy lua.hpp";
+ };
/* End PBXAggregateTarget section */
/* Begin PBXBuildFile section */
0ECBBA6C0CFCA37500416538 /* QLColorCode.qlgenerator in Copy to Library */ = {isa = PBXBuildFile; fileRef = 8D576316048677EA00EA77CD /* QLColorCode.qlgenerator */; };
+ 26BACA53257CF04E00486D28 /* plugins in Resources */ = {isa = PBXBuildFile; fileRef = 26BACA52257CF04A00486D28 /* plugins */; };
+ 26BACA54257CF04E00486D28 /* filetypes.conf in Resources */ = {isa = PBXBuildFile; fileRef = 26BACA51257CF01B00486D28 /* filetypes.conf */; };
+ 26BACA58257CF06200486D28 /* highlight in Resources */ = {isa = PBXBuildFile; fileRef = 26BACA57257CF06200486D28 /* highlight */; };
+ 26BACA5C257CF17400486D28 /* themes in Resources */ = {isa = PBXBuildFile; fileRef = 26BACA5B257CF17400486D28 /* themes */; };
+ 26BACA60257CF60700486D28 /* langDefs in Resources */ = {isa = PBXBuildFile; fileRef = 26BACA5F257CF60600486D28 /* langDefs */; };
EA43671C15F6BF9C009DA6C0 /* colorize.sh in Resources */ = {isa = PBXBuildFile; fileRef = EA43671615F6BF9C009DA6C0 /* colorize.sh */; };
EA43671D15F6BF9C009DA6C0 /* Common.h in Headers */ = {isa = PBXBuildFile; fileRef = EA43671715F6BF9C009DA6C0 /* Common.h */; };
EA43671E15F6BF9C009DA6C0 /* Common.m in Sources */ = {isa = PBXBuildFile; fileRef = EA43671815F6BF9C009DA6C0 /* Common.m */; };
@@ -42,6 +58,27 @@
remoteGlobalIDString = 8D57630D048677EA00EA77CD;
remoteInfo = QLColorCode;
};
+ 26653B42258B55570021CDD8 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 089C1669FE841209C02AAC07 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 26653B3A258B55350021CDD8;
+ remoteInfo = "Copy lua.hpp";
+ };
+ 26BAC9C4257CE96D00486D28 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 089C1669FE841209C02AAC07 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 26BAC9AB257CE89900486D28;
+ remoteInfo = highlight;
+ };
+ 26BAC9C6257CE97100486D28 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 089C1669FE841209C02AAC07 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 26BAC9BC257CE93200486D28;
+ remoteInfo = lua;
+ };
/* End PBXContainerItemProxy section */
/* Begin PBXCopyFilesBuildPhase section */
@@ -59,6 +96,11 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
+ 26BACA51257CF01B00486D28 /* filetypes.conf */ = {isa = PBXFileReference; lastKnownFileType = text; name = filetypes.conf; path = hl/highlight/filetypes.conf; sourceTree = ""; };
+ 26BACA52257CF04A00486D28 /* plugins */ = {isa = PBXFileReference; lastKnownFileType = folder; name = plugins; path = hl/highlight/plugins; sourceTree = ""; };
+ 26BACA57257CF06200486D28 /* highlight */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.executable"; name = highlight; path = hl/highlight/src/highlight; sourceTree = ""; };
+ 26BACA5B257CF17400486D28 /* themes */ = {isa = PBXFileReference; lastKnownFileType = folder; name = themes; path = hl/highlight/themes; sourceTree = ""; };
+ 26BACA5F257CF60600486D28 /* langDefs */ = {isa = PBXFileReference; lastKnownFileType = folder; name = langDefs; path = hl/highlight/langDefs; sourceTree = ""; };
8D576316048677EA00EA77CD /* QLColorCode.qlgenerator */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = QLColorCode.qlgenerator; sourceTree = BUILT_PRODUCTS_DIR; };
EA43671615F6BF9C009DA6C0 /* colorize.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; name = colorize.sh; path = src/colorize.sh; sourceTree = ""; };
EA43671715F6BF9C009DA6C0 /* Common.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Common.h; path = src/Common.h; sourceTree = ""; };
@@ -72,20 +114,15 @@
EAE9D2CB169E2B3500A67B2F /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = README.md; sourceTree = ""; };
/* End PBXFileReference section */
-/* Begin PBXFrameworksBuildPhase section */
- 8D576313048677EA00EA77CD /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
/* Begin PBXGroup section */
089C166AFE841209C02AAC07 /* QLColorCode */ = {
isa = PBXGroup;
children = (
+ 26BACA5F257CF60600486D28 /* langDefs */,
+ 26BACA5B257CF17400486D28 /* themes */,
+ 26BACA57257CF06200486D28 /* highlight */,
+ 26BACA52257CF04A00486D28 /* plugins */,
+ 26BACA51257CF01B00486D28 /* filetypes.conf */,
EACE3C6924E8D93800B58A51 /* CHANGELOG.md */,
EA43672C15F6C1B8009DA6C0 /* COPYING */,
EAE9D2CB169E2B3500A67B2F /* README.md */,
@@ -138,6 +175,39 @@
};
/* End PBXHeadersBuildPhase section */
+/* Begin PBXLegacyTarget section */
+ 26BAC9AB257CE89900486D28 /* highlight */ = {
+ isa = PBXLegacyTarget;
+ buildArgumentsString = "-j9 cli LUA_LIBS=../../lua/liblua.a 'CXX_COMPILE=clang++ -Wall -O2 -std=c++11 -D_FILE_OFFSET_BITS=64 -c -I ../../lua -I /opt/local/include -I /usr/local/include -I ./include'";
+ buildConfigurationList = 26BAC9AC257CE89900486D28 /* Build configuration list for PBXLegacyTarget "highlight" */;
+ buildPhases = (
+ );
+ buildToolPath = /usr/bin/make;
+ buildWorkingDirectory = hl/highlight;
+ dependencies = (
+ 26BAC9C7257CE97100486D28 /* PBXTargetDependency */,
+ 26653B43258B55570021CDD8 /* PBXTargetDependency */,
+ );
+ name = highlight;
+ passBuildSettingsInEnvironment = 1;
+ productName = highlight;
+ };
+ 26BAC9BC257CE93200486D28 /* lua */ = {
+ isa = PBXLegacyTarget;
+ buildArgumentsString = "-j9 $(ACTION) MYCFLAGS=-std=c99 MYLDFLAGS= MYLIBS=-ldl";
+ buildConfigurationList = 26BAC9BD257CE93200486D28 /* Build configuration list for PBXLegacyTarget "lua" */;
+ buildPhases = (
+ );
+ buildToolPath = /usr/bin/make;
+ buildWorkingDirectory = hl/lua;
+ dependencies = (
+ );
+ name = lua;
+ passBuildSettingsInEnvironment = 1;
+ productName = lua;
+ };
+/* End PBXLegacyTarget section */
+
/* Begin PBXNativeTarget section */
8D57630D048677EA00EA77CD /* QLColorCode */ = {
isa = PBXNativeTarget;
@@ -146,13 +216,13 @@
8D57630E048677EA00EA77CD /* Headers */,
8D57630F048677EA00EA77CD /* Resources */,
8D576311048677EA00EA77CD /* Sources */,
- 8D576313048677EA00EA77CD /* Frameworks */,
0ECBBA6F0CFCA39E00416538 /* Copy to Library */,
0E1280381061C3EA0078EC05 /* Reset quicklookd */,
);
buildRules = (
);
dependencies = (
+ 26BAC9C5257CE96D00486D28 /* PBXTargetDependency */,
);
name = QLColorCode;
productInstallPath = /Library/QuickLook;
@@ -168,6 +238,17 @@
attributes = {
BuildIndependentTargetsInParallel = YES;
LastUpgradeCheck = 1200;
+ TargetAttributes = {
+ 26653B3A258B55350021CDD8 = {
+ CreatedOnToolsVersion = 12.3;
+ };
+ 26BAC9AB257CE89900486D28 = {
+ CreatedOnToolsVersion = 12.2;
+ };
+ 26BAC9BC257CE93200486D28 = {
+ CreatedOnToolsVersion = 12.2;
+ };
+ };
};
buildConfigurationList = 2CA326220896AD4900168862 /* Build configuration list for PBXProject "QLColorCode" */;
compatibilityVersion = "Xcode 3.2";
@@ -183,6 +264,9 @@
targets = (
8D57630D048677EA00EA77CD /* QLColorCode */,
0E0E34E90D0097020086C1E6 /* Package */,
+ 26BAC9AB257CE89900486D28 /* highlight */,
+ 26BAC9BC257CE93200486D28 /* lua */,
+ 26653B3A258B55350021CDD8 /* Copy lua.hpp */,
);
};
/* End PBXProject section */
@@ -192,6 +276,11 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
+ 26BACA60257CF60700486D28 /* langDefs in Resources */,
+ 26BACA5C257CF17400486D28 /* themes in Resources */,
+ 26BACA58257CF06200486D28 /* highlight in Resources */,
+ 26BACA53257CF04E00486D28 /* plugins in Resources */,
+ 26BACA54257CF04E00486D28 /* filetypes.conf in Resources */,
EA43671C15F6BF9C009DA6C0 /* colorize.sh in Resources */,
EACE3C6A24E8D93800B58A51 /* CHANGELOG.md in Resources */,
EA43673015F6C1B8009DA6C0 /* COPYING in Resources */,
@@ -213,7 +302,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = "/bin/zsh -x";
- shellScript = "# shell script goes here\nif [ $BUILD_STYLE != \"Release\" ]; then\n echo \"Error: Must use Release build style\"\n exit 1\nfi\n\ncd $PROJECT_DIR\nmkdir -vp release\ncd release\npkgDir=QLColorCode-$CURRENT_PROJECT_VERSION\nrm -rf $pkgDir\nmkdir $pkgDir\ncp -rp $TARGET_BUILD_DIR/*.qlgenerator $pkgDir\ncp ../ReadMe.txt $pkgDir\ncp ../LICENSE.txt $pkgDir\ncp ../ChangeLog.txt $pkgDir\n# For some reason Xcode has been producing world-writable output on occasion\nchmod -R o-w $pkgDir\ntar cvzf $pkgDir.tgz $pkgDir\nopen $PROJECT_DIR/release";
+ shellScript = "# shell script goes here\ncd $PROJECT_DIR\nmkdir -vp release\ncd release\npkgDir=QLColorCode-$CURRENT_PROJECT_VERSION\nrm -rf $pkgDir\nmkdir $pkgDir\ncp -rp $TARGET_BUILD_DIR/*.qlgenerator $pkgDir\ncp ../ReadMe.txt $pkgDir\ncp ../LICENSE.txt $pkgDir\ncp ../ChangeLog.txt $pkgDir\n# For some reason Xcode has been producing world-writable output on occasion\nchmod -R o-w $pkgDir\ntar cvzf $pkgDir.tgz $pkgDir\nopen $PROJECT_DIR/release\n";
};
0E1280381061C3EA0078EC05 /* Reset quicklookd */ = {
isa = PBXShellScriptBuildPhase;
@@ -230,6 +319,23 @@
shellScript = "qlmanage -r\n";
showEnvVarsInLog = 0;
};
+ 26653B41258B55390021CDD8 /* ShellScript */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ );
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "cp hl/lua.hpp hl/lua/lua.hpp\n";
+ };
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
@@ -252,34 +358,211 @@
target = 8D57630D048677EA00EA77CD /* QLColorCode */;
targetProxy = 0E0E34ED0D0097280086C1E6 /* PBXContainerItemProxy */;
};
+ 26653B43258B55570021CDD8 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 26653B3A258B55350021CDD8 /* Copy lua.hpp */;
+ targetProxy = 26653B42258B55570021CDD8 /* PBXContainerItemProxy */;
+ };
+ 26BAC9C5257CE96D00486D28 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 26BAC9AB257CE89900486D28 /* highlight */;
+ targetProxy = 26BAC9C4257CE96D00486D28 /* PBXContainerItemProxy */;
+ };
+ 26BAC9C7257CE97100486D28 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 26BAC9BC257CE93200486D28 /* lua */;
+ targetProxy = 26BAC9C6257CE97100486D28 /* PBXContainerItemProxy */;
+ };
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
0E0E34EA0D0097020086C1E6 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ COPY_PHASE_STRIP = NO;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ PRODUCT_NAME = QLColorCode;
+ };
+ name = Debug;
+ };
+ 0E0E34EB0D0097020086C1E6 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ PRODUCT_NAME = QLColorCode;
+ };
+ name = Release;
+ };
+ 26653B3C258B55350021CDD8 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_STYLE = Automatic;
+ DEVELOPMENT_TEAM = EU5R2QY9HJ;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ };
+ name = Debug;
+ };
+ 26653B3D258B55350021CDD8 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_STYLE = Automatic;
+ DEVELOPMENT_TEAM = EU5R2QY9HJ;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ };
+ name = Release;
+ };
+ 26BAC9AD257CE89900486D28 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
- COMBINE_HIDPI_IMAGES = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CODE_SIGN_STYLE = Automatic;
+ DEBUGGING_SYMBOLS = YES;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ DEVELOPMENT_TEAM = EU5R2QY9HJ;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
+ MTL_FAST_MATH = YES;
+ OTHER_CFLAGS = "";
+ OTHER_LDFLAGS = "";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ };
+ name = Debug;
+ };
+ 26BAC9AE257CE89900486D28 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_ENABLE_OBJC_WEAK = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ DEVELOPMENT_TEAM = EU5R2QY9HJ;
+ ENABLE_NS_ASSERTIONS = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ MTL_FAST_MATH = YES;
+ OTHER_CFLAGS = "";
+ OTHER_LDFLAGS = "";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ };
+ name = Release;
+ };
+ 26BAC9BE257CE93200486D28 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_ENABLE_OBJC_WEAK = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CODE_SIGN_STYLE = Automatic;
+ DEBUGGING_SYMBOLS = YES;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ DEVELOPMENT_TEAM = EU5R2QY9HJ;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
+ GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
- GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
- PRODUCT_NAME = Package;
- RUN_CLANG_STATIC_ANALYZER = YES;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
+ MTL_FAST_MATH = YES;
+ OTHER_CFLAGS = "";
+ OTHER_LDFLAGS = "";
+ PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
- 0E0E34EB0D0097020086C1E6 /* Release */ = {
+ 26BAC9BF257CE93200486D28 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
- COMBINE_HIDPI_IMAGES = YES;
- COPY_PHASE_STRIP = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CODE_SIGN_STYLE = Automatic;
+ COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
- PRODUCT_NAME = Package;
- RUN_CLANG_STATIC_ANALYZER = YES;
- ZERO_LINK = NO;
+ DEVELOPMENT_TEAM = EU5R2QY9HJ;
+ ENABLE_NS_ASSERTIONS = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ MTL_FAST_MATH = YES;
+ OTHER_CFLAGS = "";
+ OTHER_LDFLAGS = "";
+ PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
@@ -288,9 +571,9 @@
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
COMBINE_HIDPI_IMAGES = YES;
- CURRENT_PROJECT_VERSION = 3.1.1;
+ CURRENT_PROJECT_VERSION = "4.1.1+dev";
MACOSX_DEPLOYMENT_TARGET = 10.15;
- MARKETING_VERSION = 3.1.1;
+ MARKETING_VERSION = "4.1.1+dev";
OTHER_CFLAGS = "-DDEBUG";
};
name = Debug;
@@ -300,9 +583,9 @@
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
COMBINE_HIDPI_IMAGES = YES;
- CURRENT_PROJECT_VERSION = 3.1.1;
+ CURRENT_PROJECT_VERSION = "4.1.1+dev";
MACOSX_DEPLOYMENT_TARGET = 10.15;
- MARKETING_VERSION = 3.1.1;
+ MARKETING_VERSION = "4.1.1+dev";
};
name = Release;
};
@@ -339,7 +622,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES_AGGRESSIVE;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
- CURRENT_PROJECT_VERSION = "2.1.1+dev";
+ CURRENT_PROJECT_VERSION = "4.1.1+dev";
DEAD_CODE_STRIPPING = YES;
DSTROOT = "/export/tmp/$(PROJECT_NAME).dst";
ENABLE_STRICT_OBJC_MSGSEND = YES;
@@ -406,7 +689,7 @@
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES_AGGRESSIVE;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- CURRENT_PROJECT_VERSION = "2.1.1+dev";
+ CURRENT_PROJECT_VERSION = "4.1.1+dev";
DEAD_CODE_STRIPPING = YES;
DSTROOT = "/export/tmp/$(PROJECT_NAME).dst";
ENABLE_STRICT_OBJC_MSGSEND = YES;
@@ -451,6 +734,33 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
+ 26653B3B258B55350021CDD8 /* Build configuration list for PBXAggregateTarget "Copy lua.hpp" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 26653B3C258B55350021CDD8 /* Debug */,
+ 26653B3D258B55350021CDD8 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 26BAC9AC257CE89900486D28 /* Build configuration list for PBXLegacyTarget "highlight" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 26BAC9AD257CE89900486D28 /* Debug */,
+ 26BAC9AE257CE89900486D28 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 26BAC9BD257CE93200486D28 /* Build configuration list for PBXLegacyTarget "lua" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 26BAC9BE257CE93200486D28 /* Debug */,
+ 26BAC9BF257CE93200486D28 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
2CA3261E0896AD4900168862 /* Build configuration list for PBXNativeTarget "QLColorCode" */ = {
isa = XCConfigurationList;
buildConfigurations = (
diff --git a/README.md b/README.md
index 1663016..cf458e5 100644
--- a/README.md
+++ b/README.md
@@ -4,22 +4,23 @@
**Original project:**
-This is a Quick Look plug-in that renders source code with syntax highlighting,
-using the [Highlight library](http://www.andre-simon.de).
+This is a Quick Look plug-in that renders source code with syntax highlighting, using the
+[Highlight library](http://www.andre-simon.de).
-To install Highlight, [download the library manually](http://www.andre-simon.de/zip/download.php), or use Homebrew `brew install highlight`
+To install the plug-in, just drag it to `~/Library/QuickLook`. You may need to create that folder if it doesn't already
+exist.
-To install the plug-in, just drag it to `~/Library/QuickLook`.
-You may need to create that folder if it doesn't already exist.
+Alternatively, if you use [Homebrew Cask](https://github.com/caskroom/homebrew-cask), install with
+`brew install --cask qlcolorcode`. Also available on [MacPorts](https://www.macports.org): `port install QLColorCode`.
-Alternative, if you use [Homebrew Cask](https://github.com/caskroom/homebrew-cask),
-install with `brew cask install qlcolorcode`.
+**To build the project, you must have Boost headers on your system in `/opt/local/include` or `/usr/local/include`.**
## Settings
If you want to configure `QLColorCode`, there are several `defaults` commands that could be useful:
-Setting the text encoding (default is `UTF-8`). Two settings are required. The first sets Highlight's encoding, the second sets Webkit's:
+Setting the text encoding (default is `UTF-8`). Two settings are required. The first sets Highlight's encoding, the
+second sets Webkit's:
defaults write org.n8gray.QLColorCode textEncoding UTF-16
defaults write org.n8gray.QLColorCode webkitTextEncoding UTF-16
@@ -32,7 +33,8 @@ Setting the font size (default is `10`):
defaults write org.n8gray.QLColorCode fontSizePoints 9
-Setting the color style for `light` and `dark` mode (see [all available themes](http://www.andre-simon.de/doku/highlight/theme-samples.php)):
+Setting the color style for `light` and `dark` mode (see
+[all available themes](http://www.andre-simon.de/doku/highlight/theme-samples.php)):
defaults write org.n8gray.QLColorCode lightTheme solarized-light
defaults write org.n8gray.QLColorCode darkTheme solarized-dark
@@ -45,11 +47,11 @@ Setting the maximum size (in bytes, deactivated by default) for previewed files:
defaults write org.n8gray.QLColorCode maxFileSize 1000000
-Setting any extra command-line flags for Highlight (see below):
+zSetting any extra command-line flags for Highlight (see below):
defaults write org.n8gray.QLColorCode extraHLFlags '-l -W'
-Here are some useful 'highlight' command-line flags (from the man page):
+Here are some useful 'highlight' command-line flags (from the main page):
-F, --reformat=