helwardany / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

Feature Request : Cython support #542

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Cython is a language that makes writing C extensions for the Python language as 
easy as Python itself.

see http://www.cython.org/

It would be nice to have syntax highlighting (same as with python file + a few 
more keywords) and debugging (cython uses gdb).

Original issue reported on code.google.com by pachalm...@gmail.com on 2 Aug 2011 at 7:40

GoogleCodeExporter commented 9 years ago
I second the request for Cython code editing, since Cython is becoming popular 
recently.

As an easy first step on my local PyScripter, I simply added .pyx to the list 
of Python source files. (Tools -> Options -> Export Highlighters. Add *.pyx to 
the Highlighters\Python section. Then Tools -> Options -> Import Highlighters).

This is already much better but the Cython keywords are missing. (cdef, cpdef, 
intern, struct, union, enum, ctypedef, void, double, public, inline, api, 
nogil, gil, except, cimport, NULL, char, DEF, IF, ELSEIF, ELSE, readonly, 
except?, include, bint, by, include).

It looks like the necessary change would be to SynHighlighterPython.pas...

Original comment by connelly...@gmail.com on 23 Oct 2011 at 5:14

GoogleCodeExporter commented 9 years ago
I am prepared to add, but since I am not using cython could you please provide 
a full list of the changes to the Python highlighter needed and the file 
extensions that contain cython?

Original comment by pyscripter on 26 Oct 2011 at 12:26

GoogleCodeExporter commented 9 years ago
The extensions are .pyx .pxd and .pxi
Unfortunately there doesn't seem to be any kind of official specifications. You 
can look at this thread regarding the integration of cython to pydev 
:http://groups.google.com/group/cython-users/browse_thread/thread/517bd7542923c1
e9?pli=1
In particular there's a link to the highligther configuration for Kate and 
emacs.
Hope this helps.

Original comment by pachalm...@gmail.com on 20 Dec 2011 at 2:00

GoogleCodeExporter commented 9 years ago
Basic support for Cython added:  Syntax Highlighting, File filters, file 
template. 
Code explorer, code completion, find defintion etc. work only for the 
Python-like constructs.

Debugger support is not available nor is planned.

You may want to create External tool for the compilation and other processing 
of Cython files.

Original comment by pyscripter on 5 Mar 2012 at 1:17