https://github.com/tsif/sourcepreview
Quick look plugin for macOS for source code files
https://github.com/tsif/sourcepreview
quicklook-plugin
Last synced: 9 months ago
JSON representation
Quick look plugin for macOS for source code files
- Host: GitHub
- URL: https://github.com/tsif/sourcepreview
- Owner: tsif
- License: mit
- Created: 2018-01-01T16:41:54.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-22T07:57:05.000Z (over 7 years ago)
- Last Synced: 2025-04-20T23:32:32.367Z (10 months ago)
- Topics: quicklook-plugin
- Language: Objective-C
- Size: 1.09 MB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.com/tsif/SourcePreview) [](https://opensource.org/licenses/MIT) 
# SourcePreview
Quick look plugin for macOS for source code files in swift. Inspired by [QLMarkDown](https://github.com/toland/qlmarkdown) and [QLSwift](https://github.com/lexrus/QLSwift). Source code is rendered by using [prism.js](https://prismjs.com/). Features include the ability to copy the source file to the clipboard and the display of line numbers in the preview.
written by [Dimitri James Tsiflitzis](https://github.com/tsif/)
designed by [Dimitris Niavis](https://niavis.design/)


## Installation
Pick any of the methods below:
- Once you clone this repo, you can run the `SourcePreview` scheme in xcode. A post build step copies `SourcePreview.qlgenerator` into `~/Library/QuickLook` and you can start previewing swift files.
- You can build an installer package yourself. Run the project at least once in xcode. Then, in a terminal, go to the `installer` folder located in the `SourcePreview` folder. Run the `build.sh` file. Running this command will create a `.pkg` file in the `compiled` folder. Double click on the `.pkg` and follow the prompts to install the plugin.
- Download the latest [release](https://github.com/tsif/SourcePreview/releases/tag/1.0.1) from https://github.com/tsif/SourcePreview/releases. You can copy `SourcePreview.qlgenerator` into `~/Library/QuickLook` manually (run `qlmanage -r` once you do this) or you can run the installer package located here.
## Removal
Drag `SourcePreview.qlgenerator` located in `~/Library/QuickLook` into the trash.
## License
```
MIT License
Copyright (c) 2018 tsif
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```
## Version History
Version 1.0.1 - September 18, 2018
- Initial release.