The cython language has a similar syntax as python but with some extensions. For example there's a keyword called cdef. The python syntax highlighter works quite good but a cython highlighter is even better.
Fortunately I found a already existing syntax definition file for kate here. This one is for Pyrex on which cython is based so it should work well.
Put the file in ~/.kde/share/apps/katepart/syntax/, if this folder does not exist, just create it. Now you should be able to select pyrex from the script section under highlighter in kate. You can also rename it to cython but then you also have to change pyrex to cython in the file.
Fortunately I found a already existing syntax definition file for kate here. This one is for Pyrex on which cython is based so it should work well.
Put the file in ~/.kde/share/apps/katepart/syntax/, if this folder does not exist, just create it. Now you should be able to select pyrex from the script section under highlighter in kate. You can also rename it to cython but then you also have to change pyrex to cython in the file.
Edit: I added some cython specifig keyword to it, you can get my version from here.
No comments:
Post a Comment