Wiki

Changes between Initial Version and Version 1 of Editra

Show
Ignore:
Timestamp:
05/18/09 04:41:12 (15 years ago)
Author:
eric.sellon
Comment:

Initial population of the page about adding Cobra support for the editor Editra

Legend:

Unmodified
Added
Removed
Modified
  • Editra

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