[TxMt] Re: Python: SQL in triple " strings scope

Ed Singleton singletoned at gmail.com
Fri Oct 26 19:33:40 UTC 2007


Yes, fair enough.  It is duly noted that I'm pretty much of idiot
regarding [foo]ml specifications.

But kid and genshi both markup fragments of their language using
snippets such as:

"""<div xmlns:py="http://purl.org/kid/ns#">
	<h2>${item.title}</h2>
		<p py:for="thing in item.things">${thing}</p>
</div>"""

When doing webstuff in python (using kid or genshi) you tend to write
a lot of the fragments, and it would be outstanding if you could get
them to be recognised as xhtml and coloured relevantly and all.

Ed

On 10/19/07, Jacob Rus <jacobolus at gmail.com> wrote:
> Ed Singleton wrote:
> > On 10/17/07, Alex Ross <alex.j.ross at gmail.com> wrote:
> >> I've added the sql-include to python strings... you should be seeing
> >> it in the next Cutting-Edge update, or sooner if you update your own
> >> bundles.
> >
> > Personally, I'd also like to see similar for when a triple quoted
> > string begins with a valid html tag that contains a namespace
> > declaration (such as Genshi or Kid).
>
> What is a "valid html tag that contains a namespace declaration"? :)
>
> -Jacob
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>



More information about the textmate mailing list