Re: [code] [textadept] Custom lexer, code formatting Markdown-style

From: Robert Gieseke <>
Date: Wed, 05 Feb 2014 19:59:45 +0100

Hi Klaus,

have a look at the Literate CoffeeScript[1] lexer (litcoffee)[2]. Maybe
it's even possible to generalize this, as in -> Go -> Python



Am 05/02/14 15:52, schrieb Klaus Borges:
> Hello,
> I'm trying to put together a modified version of a lexer which, just like
> Markdown, only treats as code an indented block of text and higlights its
> syntax.
> More specifically, I'm trying to do this for Python (4-space indents) and
> Go (tab indents), but I guess this could be very general and work with
> whatever language.
> This way, I can have a .mdgo (just an example) file and write text with
> syntax highlighted code snippets all over.
> I'd appreciate a few pointers!
> Thanks,
> Klaus

You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Wed 05 Feb 2014 - 13:59:45 EST

This archive was generated by hypermail 2.2.0 : Thu 06 Feb 2014 - 06:53:15 EST