Hi Edward,

Thanks for your quick reply.

By support, I meant by support is that leo would parse the file into an 
outline (like a regular python file). I've tested this with @clean 
<file>.pyx and I get a single node with '@language cython' at the top and 
its nicely highlighted but not in outline as desired.

I hope this is clearer. If I'm missing a setting or something, I would 
appreciate some pointers.

Thanks,

S

On Friday, June 19, 2020 at 2:47:56 PM UTC+3, Edward K. Ream wrote:
>
>
>
> On Fri, Jun 19, 2020 at 5:38 AM Shakeeb <[email protected] 
> <javascript:>> wrote:
>
>>
>> I'm using leo in a new project with c, python and cython. Of course, c 
>> and python and well supported in leo's with file directives, but cython is 
>> not (except for syntax coloring, which is great!).
>>
>> Can anyone point in the right direction of the leo's code if I wanted to 
>> add such support (which be 98% equivalent to python)?
>>
>
> I'm not sure what kind of support you want. As you say, Leo already 
> supports syntax coloring for cython. Furthermore, Leo knows that cython's 
> comments start with '#', which in turn means that @file x.pyx and @clean 
> x.pyx will just work.
>
> As far as compiling .pyx files, you can easily write an @button script to 
> do that. See this FAQ entry 
> <http://leoeditor.com/FAQ.html#how-can-i-run-code-in-an-external-process>.
>
> Please feel free to ask more questions.
>
> Edward
>

-- 
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/375b5dbf-3188-4330-adf6-a3d96288e327o%40googlegroups.com.

Reply via email to