Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
Subject: Re: font locking messages
Date: Fri, 14 Apr 2006 08:56:24 +0200	[thread overview]
Message-ID: <m3ek00d4rr.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <87vf2kgyhi.fsf@mun.ca>

Sebastian Luque <spluque@gmail.com> writes:

> Messages in some groups I read contain lots of code in a language typical
> of that group. Searching for a way to font-lock messages in these groups
> according to a designated mode, I only found one reference from two years
> ago where it was concluded such functionality was not available. Have
> there been any changes since then?

Not that I know of, but I don't know of much.

Someone would have to write a computer language guessing library that
could be applied to arbitrary text that would say "this section is
language X and this section is language Y".  It doesn't sound trivial
to make.  I mean, guessing that a buffer contains, say, PHP isn't very
difficult, but saying that "the PHP begins here and stops here, and
this isn't code" might be more difficult.

Perhaps.

I think it sounds like an interesting problem, though.  

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




      reply	other threads:[~2006-04-14  6:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-05 16:06 Sebastian Luque
2006-04-14  6:56 ` Lars Magne Ingebrigtsen [this message]

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=m3ek00d4rr.fsf@quimbies.gnus.org \
    --to=larsi@gnus.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.
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).