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

From: Robert Gieseke <rob.g.att.web.de>
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
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.
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