From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Beautiful syntax-highlighting of $(command) substitution
Date: Fri, 1 Jun 2018 17:21:34 +0200 [thread overview]
Message-ID: <CAKc7PVDfKJz6xXVn0G2eT6ecpLPmTchszOWJD18NfUV=efhDjQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 631 bytes --]
Hello,
fast-syntax-highlighting supports themes and highlighting of $(). This
opened a way to implement: use distinct theme for $() interior. Effect
is in attached file. Additional axample:
http://psprint.blinkenshell.org/cmdsubst3.png
The secondary theme is specified by simple entry in theme ini-file:
https://github.com/zdharma/fast-syntax-highlighting/blob/master/themes/clean.ini#L7
If (Z+x+) flag will be implemented in Zshell, it will be possible to
do all this very correctly, robustly.
Also check out 256-color themes, the difference to default "rigid" 8
colors is drastic:
http://psprint.blinkenshell.org/theme.png
[-- Attachment #2: cmdsubst2.png --]
[-- Type: image/png, Size: 8604 bytes --]
reply other threads:[~2018-06-01 15:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKc7PVDfKJz6xXVn0G2eT6ecpLPmTchszOWJD18NfUV=efhDjQ@mail.gmail.com' \
--to=sgniazdowski@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).