Hmm, perhaps this is it:

language = c.frame.body.colorizer.scanLanguageDirectives(p)
if c.hasAmbiguousLanguage(p):
    language = c.getLanguageAtCursor(p, language)

g.es("language: ", language)

On Monday, June 2, 2025 at 10:40:15 AM UTC+1 jkn wrote:

> Hi all
>     a simple (I think) question - how do I determine the language in 
> effect for a given (or current) node?
>
> I was looking for a primitive for this but there seem to be a few 
> approaches used, I'm wondering what the recommended way might be.
>
>     Thanks
>     J^n
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/leo-editor/686ad4d1-f654-427b-b02f-c63aa18c63a7n%40googlegroups.com.

Reply via email to