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

From: Klaus Borges <klausborgs.att.gmail.com>
Date: Wed, 5 Feb 2014 17:57:57 -0200

Hey Robert,

Thanks! I bet that'll help, I didn't know there was a format that does
exactly what I was looking for but with another language.
 On Feb 5, 2014 5:00 PM, "Robert Gieseke" <rob.g.att.web.de> wrote:

> Hi Klaus,
>
> have a look at the Literate CoffeeScript[1] lexer (litcoffee)[2]. Maybe
> it's even possible to generalize this, as in
> filename.go.md -> Go
> filename.py.md -> Python
>
> Cheers,
> Robert
>
> [1] http://ashkenas.com/literate-coffeescript/
> [2] http://foicica.com/hg/scintillua/file/07ceeef36522/
> lexers/litcoffee.lua
>
> 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 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.
>
>

-- 
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 Wed 05 Feb 2014 - 14:57:57 EST

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