NOTE: This is neither finished nor in active development, but I will take PRs and try to review them as they come in.
Install Source-highlight using your preferred method (build it yourself according to the manual or use a package manager, e.g.
apt-get install source-highlightor
brew install source-highlight).
source-highlight-settings. This will tell you where your datadir is and give you a chance to change it (you won't need to, but note the path).
You have two options now:
Copy (or symlink) the
*-solarized.outfilefiles to datadir and invoke them manually with Source-highlight's
--style-fileoptions (a good option if you're only going to use Source-highlight with
Overwrite the old files, e.g. copy
esc.lang(or move the original files and symlink the solarized files).
To automatically Source-highlight files when using
less, just add the
following lines to your
.bashrc (or shell equivalent):
export LESSOPEN="| source-highlight -f esc-solarized \ --style-file=esc-solarized.style -i %s -o STDOUT" export LESS=" -R "
Or, if you overwrote/removed the original
export LESSOPEN="| source-highlight -f esc -i %s -o STDOUT" export LESS=" -R "
less as usual and supported files will be highlighted.
extras/ for an updated
ruby.lang file, because Source-highlight's
original wasn't great. Copy or symlink this to datadir just like the
other files. The included file still needs work. Feel free to...
To contribute, just do a pull request and I'll review it as soon as I can.
See the Source-highlight docs for information on its lang, outlang, and style syntaxes.
- Implement light as well as dark color schemes.
- Figure out the correct ANSI codes for bold/italic on the terminal and how to
use them in
- Implement other
- Make it as pretty as vim-colors-solarized in as many cases as possible.