From: Rocky Bernstein <rocky@gnu.org>
To: zsh-workers@zsh.org
Subject: pygments scanner for zsh?
Date: Tue, 8 Feb 2011 13:22:48 -0500 [thread overview]
Message-ID: <AANLkTik70JdKrRzYBLF6oyJE=1c-nxSu=JLboM3Zmijt@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 836 bytes --]
Recently I've added syntax coloring to the zshdb debugger (on git only). It
uses pygments. See http://pygments.org/. Right now I'm using the pygments
scanner for bash.
I mention all of this in case there is a desire or need for customization of
that scanner specifically for zsh.
Also, for my terminal output I dislike the colors. See TOKEN_COLORS of
pygments/formatters/terminal.py in the source code.
For example variable name and constant are both red. As great as pygments
is, the command-line program pygmentize doesn't seem to have suitable
options for setting say terminal colors of for tokens. (Or I can't figure
out how to use it). So what I'll probably do is write a simple front-end
Python to run things and have a way inside the debugger to specify
customization.
But if folks have already figured this out, lemme know.
reply other threads:[~2011-02-08 18: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='AANLkTik70JdKrRzYBLF6oyJE=1c-nxSu=JLboM3Zmijt@mail.gmail.com' \
--to=rocky@gnu.org \
--cc=zsh-workers@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).