You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My use-case is using less to page through Elisp files. I have LESSOPEN set to | /usr/bin/lesspipe %s. I'm using a .lessfilter file (called by lesspipe) to call source-highlight.
source-highlight's default highlighting for Elisp is very detailed, but the colors don't work in a terminal emulator themed with Solarized Dark. I have great hopes for your project, but so far I get either degraded output, with only a few minor keywords highlighted, or no highlighting at all.
I've tried both with and without symlinks.
The relevant section of my .lessfilter reads either:
-rw-r--r-- 1 root root 1168 Mar 12 2014 /usr/share/source-highlight/esc256.outlang
-rw-r--r-- 1 root root 549 Mar 12 2014 /usr/share/source-highlight/esc256.style
lrwxrwxrwx 1 root root 21 Mar 10 02:14 /usr/share/source-highlight/esc.outlang -> esc-solarized.outlang
-rw-r--r-- 1 root root 949 Mar 12 2014 /usr/share/source-highlight/esc.outlang.ORIGINAL
-rw-r--r-- 1 root root 304 Mar 10 01:44 /usr/share/source-highlight/esc-solarized.outlang
-rw-r--r-- 1 root root 888 Mar 10 01:44 /usr/share/source-highlight/esc-solarized.style
lrwxrwxrwx 1 root root 19 Mar 10 02:10 /usr/share/source-highlight/esc.style -> esc-solarized.style
-rw-r--r-- 1 root root 534 Mar 12 2014 /usr/share/source-highlight/esc.style.ORIGINAL
BTW, pygmentize -f terminal256 -O style=solarized_dark256 -g "$1" works fine with these settings, at least as far as colors go; source-highlight's default output does more detailed parsing though. I'm falling back on that for the moment.
My use-case is using
lessto page through Elisp files. I haveLESSOPENset to| /usr/bin/lesspipe %s. I'm using a.lessfilterfile (called bylesspipe) to callsource-highlight.source-highlight's default highlighting for Elisp is very detailed, but the colors don't work in a terminal emulator themed with Solarized Dark. I have great hopes for your project, but so far I get either degraded output, with only a few minor keywords highlighted, or no highlighting at all.I've tried both with and without symlinks.
The relevant section of my
.lessfilterreads either:or
The former gives me some highlighting, the latter, none.
Am I doing something wrong?
$LESSis--search-skip-screen --quit-at-eof --quit-if-one-screen --ignore-case --LONG-PROMPT --quiet --RAW-CONTROL-CHARS --no-init --tilde --jump-target=3$LESSCLOSEis/usr/bin/lesspipe %s %sBTW,
pygmentize -f terminal256 -O style=solarized_dark256 -g "$1"works fine with these settings, at least as far as colors go;source-highlight's default output does more detailed parsing though. I'm falling back on that for the moment.