Ah, ok, I found those modes, thanks! I've attached an example of how I'm wrapping the (t)sql nodes.
I can deal with this, but it would definitely be a lot cleaner if I could assign the language directive either in just a sql comment (i.e. -- @language sql ) or using a uA/attribute or maybe something in the headline. As it is the hierarchy is quite clunky to navigate with this double nesting and I'd prefer for the body to be pure valid sql so I can copy/paste and users linters and things because I have to switch between editors quite frequently. There are *thousands* of these statements I'd need to convert, so I thought I'd throw it out there to see if there might be a cleaner way to do this before I start digging in. Much appreciated. Kevin On Thu, 2020-09-24 at 06:43 -0500, Edward K. Ream wrote: > On Tue, Sep 22, 2020 at 12:20 PM k-hen <[email protected]> > wrote: > > > OK, I've looked around, but can't seem to find anything on the docs > > on defining custom syntaxes. > > > > Controlling Syntax Coloring tells everything you need to know. Feel > free to ask questions. > > > i.e. I can't seem to find and @language sql > > > > There is no such language because there is no leo/modes/sql.py file. > > > > > Can I do this myself (realistically)? > > > > Yes you can. If jEdit has a sql colorer, you can use the @button > jEdit2Py button in scripts.leo to convert the jEdit language > description file to a modes/sql.py. > > Edward > -- > You received this message because you are subscribed to a topic in > the Google Groups "leo-editor" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/leo-editor/pU1HOGQ6jXU/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/leo-editor/CAMF8tS2C2ZX-LjSzUDyGDE-tSbt60_ctPMDuRCnYHGqr11E-%2Bg%40mail.gmail.com > . -- 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 on the web visit https://groups.google.com/d/msgid/leo-editor/0e256bcc0d749589e1f4b42a12a57345013dfceb.camel%40gmail.com.
sql_wrapper_example.leo
Description: XML document
