Article View: news.software.readers
Article #247571Re: [slrn] syntax highlighting of articles
From: Peter J Ross
Date: Fri, 28 Oct 2011 21:40
Date: Fri, 28 Oct 2011 21:40
27 lines
2089 bytes
2089 bytes
In news.software.readers on Fri, 28 Oct 2011 23:13:03 +0200, Simon Straison <arskus@arcor.de> wrote: > Hi, > > does anyone know how to do syntax highlighting of articles in slrn? > > It would be nice if I had some syntax highlighting (maybe explicitly > activated with a key) when viewing articles of a programming > newsgroup. Troy Piggins used to have a site with instructions for this kind of thing, but it (and he) seem to have gone AWOL, though fragments still exist in the Wayback Machine. You probably want a macro like this one: <http://web.archive.org/web/20081209051809/http://piggo.com/~troy/slrn.php#wordcolour> But you'll have to create your own patterns to be matched. You may be able to adapt them from the syntax highlighting rules of the jed editor. (Why jed, not emacs or vim? Because, like slrn, jed uses S-Lang regexes.) -- PJR :-)
Technical Details
Message-ID:
<slrnjam8b5.8eg.pjr@peterjross.me.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mailReferences:
<vfirn8-lml.ln1@arskus.news.arcor.de>Show Full Headers
Complete Article Headers
Message-ID: <slrnjam8b5.8eg.pjr@peterjross.me.uk> Subject: Re: [slrn] syntax highlighting of articles Date: Fri, 28 Oct 2011 21:40:53 +0000 From: Peter J Ross <pjr@example.invalid> References: <vfirn8-lml.ln1@arskus.news.arcor.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Newsgroups: news.software.readers Organization: none Lines: 27 Reply-To: Peter J Ross <peadar.ruadh@gmail.com> Injection-Date: Fri, 28 Oct 2011 21:40:53 +0000 (UTC) Injection-Info: pjr.eternal-september.org; posting-host="Si6yIeSeENu0hxHB+8QYYQ"; logging-data="1923"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/+g6kl1YxQwPUJ+TpRSNiu" User-Agent: slrn/pre1.0.0-18 (Linux) Cancel-Lock: sha1:r5G1mKdMMVavFQaoigFnXFj1s0o= X-Original-Bytes: 1811