Re: [code] RFE: python and markdown lexers

From: Mitchell <m.att.foicica.com>
Date: Tue, 3 Feb 2015 09:11:07 -0500 (EST)

Hi Carlos,

On Tue, 3 Feb 2015, Carlos Pita wrote:

> [snip]
>
> Just another lexer related question:
>
> I tend to use org mode and rmarkdown (knitr + pandoc) to do what is
> currently and fashionably called reproducible research.That is, light
> markup documents with code and data interspersed with prose. In a
> sense, the "negative" of literate programming.
>
> So, would it be possible to define an lpeg grammar that combines a
> number of embedded lpeg grammars (say for latex, markdown, r, python,
> etc)? This also applies to the more mundane case of markdown github
> style code blocks.

Yes! See http://foicica.com/textadept/api.html#lexer.Embedded.Lexers

Grep Textadept's/Scintillua's `lexers/` directory for "embed_lexer" and
you'll find numerous examples.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Tue 03 Feb 2015 - 09:11:07 EST

This archive was generated by hypermail 2.2.0 : Wed 04 Feb 2015 - 06:44:30 EST