Version 1 (modified by eric.sellon, 16 years ago) |
---|
To add Cobra support for Editra http://www.editra.org/, copy the attached file (cobra.py) into Editra's syntax directory (on Linux: /usr/local/lib/python2.6/dist-packages/Editra/src/syntax, replacing 2.6 with the correct version of python; on Windows: perhaps somewhere under C:\Program Files\Editra)
Then in that same directory edit synglob.py, adding:
LANG_COBRA : (ID_LANG_COBRA, stc.STC_LEX_PYTHON, 'cobra')
to the end of the LANG_MAP assignment.
Then edit synextreg.py, adding:
LANG_COBRA = u'Cobra'
right before the line that states:
#---- End Language Identifier Keys ----#
and adding:
'cobra' : LANG_COBRA,
at the end of the EXT_MAP assignment.
Please note that the attached cobra.py file is still in development and will be provided to the Editra project once it is stable.