[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] [patch] colorizing more manpage format strings
From: |
Mike Frysinger |
Subject: |
Re: [Nano-devel] [patch] colorizing more manpage format strings |
Date: |
Mon, 28 Jan 2013 18:20:52 -0500 |
User-agent: |
KMail/1.13.7 (Linux/3.7.1; KDE/4.6.5; x86_64; ; ) |
On Monday 28 January 2013 11:59:16 Benno Schulenberg wrote:
> When editing man pages, nano does not color the lines that
> start with .RB (for alternating normal and bold). Attached
> patch is a suggestion to add this coloring. It simplifies the
> expression by coloring in some cases also the subsequent
> space.
>
> Nano also does not color the lines that start with .SS
> (a subsection header). The patch fixes that too.
if you're just doing a single letter match, might as well use [] rather than
(|). e.g.
+color brightred "\.[BIPR].*$"
i would note though that ideally nano would only highlight valid things.
whether every character after a B/I/P/R forms a valid sequence i cannot say,
but i'm pretty sure it doesn't.
e.g. this should not get colored as if it's valid:
.B% some string
-mike
signature.asc
Description: This is a digitally signed message part.