<http://forum.pspad.com/read.php?f=2&i=12053&t=12053>
----------------------------------------------------------------
Hi, could you create a highligher for pyrex ?
I've tried to create one using the user highlighter but the multi-line,
python style string (""" """) isn't recognized.
Pyrex's syntax is very similar to python's, it just adds a few keyword
like ctypedef, cdef, struct, enum, extern). I've attached a draft of the
syntax, it's not complete but it's a starting point.
;PSPad user HighLighter definition file
[Settings]
Name=pyrex
HTMLGroup=0
FileType=*.pyx
CommentString=
SharpComment=1
IndentChar=
UnIndentChar=
TabWidth=0
CaseSensitive=1
SingleQuote=1
DoubleQuote=1
KeyWordChars=_
CodeExplorer=ftPy
[KeyWords]
char=
enum=
extern=
float=
short=
struct=
[ReservedWords]
catch=
cdef=
class=
ctypedef=
def=
elif=
else=
finally=
for=
from=
if=
import=
in=
pass=
print=
return=
try=
[KeyWords2]
int=
long=
None=
self=
str=
type=
[KeyWords3]
__init__=
__name__=
__repr__=
__str__=
--
PSPad freeware editor http://www.pspad.com