Sublime Forum

Cython support (and highlighting)

#1

[quote]Cython is a language that makes writing C extensions for the Python language as easy as Python itself. Cython is based on the well-known Pyrex, but supports more cutting edge functionality and optimizations.
The Cython language is very close to the Python language, but Cython additionally supports calling C functions and declaring C types on variables and class attributes. This allows the compiler to generate very efficient C code from Cython code.
This makes Cython the ideal language for wrapping external C libraries, and for fast C modules that speed up the execution of Python code.[/quote]

You can set the language to Python, but with certain things auto-indenting does not work (with structures for example) and the the highlighting doesn’t look very good.

0 Likes

#2

You can download TextMate cython bundle and use it: http://svn.textmate.org/trunk/Review/Bundles/Cython.tmbundle/

Download all the files, and just put every file into

~/.config/sublime-text-2/Packages/Cython

Hope this is helpful.

-Joon

0 Likes