| 1 | 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) |
| 2 | |
| 3 | Then in that same directory edit synglob.py, adding: |
| 4 | |
| 5 | {{{ |
| 6 | LANG_COBRA : (ID_LANG_COBRA, stc.STC_LEX_PYTHON, 'cobra') |
| 7 | }}} |
| 8 | |
| 9 | to the end of the LANG_MAP assignment. |
| 10 | |
| 11 | Then edit synextreg.py, adding: |
| 12 | |
| 13 | {{{ |
| 14 | LANG_COBRA = u'Cobra' |
| 15 | }}} |
| 16 | |
| 17 | right before the line that states: |
| 18 | |
| 19 | {{{ |
| 20 | #---- End Language Identifier Keys ----# |
| 21 | }}} |
| 22 | |
| 23 | and adding: |
| 24 | |
| 25 | {{{ |
| 26 | 'cobra' : LANG_COBRA, |
| 27 | }}} |
| 28 | |
| 29 | at the end of the EXT_MAP assignment. |
| 30 | |
| 31 | Please note that the attached cobra.py file is still in development and will be provided to the Editra project once it is stable. |