Wiki

Changes between Version 8 and Version 9 of SciTE

Show
Ignore:
Timestamp:
12/09/10 15:52:44 (14 years ago)
Author:
torial
Comment:

Added cobraproj file type.

Legend:

Unmodified
Added
Removed
Modified
  • SciTE

    v8 v9  
    1 ''How to add Cobra (simplest):'' 
    2  
     1'''''How to add Cobra (simplest):''''' 
    32---- 
    43 
    5 The simplest way to add Cobra support is to overwrite the Global properties file and add the cobra.properties file -- both of which are attached to this wiki page.  The location to put the associated files will typically be a location like: "C:\Program Files\Scintilla Text Editor" 
     4The simplest way to add Cobra support is to overwrite the Global properties file, add the cobra.properties file, and the cobraproj.properties file -- all of which are attached to this wiki page.  The location to put the associated files will typically be a location like: "C:\Program Files\Scintilla Text Editor" 
     5 
     6The cobraproj file allows a list of files to be compiled as a single project (i.e. uses the -files option).  Compilation needs to be done on the cobraproj tab. 
     7 
     8An example cobraproj file, AppBuilder.cobraproj: 
     9 
     10{{{ 
     11AppBuilder.cobra 
     12Interfaces.cobra 
     13Interchange.cobra 
     14Builder.WinForms.cobra 
     15Builder.WinForms.Field.cobra 
     16Builder.WinForms.Class.cobra 
     17}}} 
    618 
    719 
    8 ''How to add Cobra While Preserving an existing Global Properties file:'' 
    920 
     21'''''How to add Cobra While Preserving an existing Global Properties file:''''' 
    1022---- 
    11  
    12 There are three contribs for SciTE. 
    13  
    14  * [http://cobra-language.com/forums/viewtopic.php?f=4&t=33&p=3591#p3591 Forums Posting] in 2010-11 by torial 
    15  * [http://cobra-language.com/forums/viewtopic.php?f=4&t=172 Forums Posting] in 2008-10 by gogobyte 
    16  * [http://cobra-language.com/forums/viewtopic.php?f=4&t=33 Forums Posting] in 2008-02 by Dafra 
    17  
    18 See also: EditorSupport 
    1923 
    2024To use a cobra.properties file, as provided in one of the forum posts, be sure to make the following changes to the SciTEGlobal.properties files: 
    2125 
    22  * Add "{{{Cobra|cobra||\}}}" to the list of languages set to the menu.language property.  Search for "menu.language=\" to find the location in the file. 
    23  * Add "import cobra" to the list of imports.  Search for "import asm" to find the location in the file. 
    24  * OPTIONAL: Add a .cobra file extension, by adding "*.cobra;" to the list of extensions assigned to the "source.files" property.  Then add "$(filter.cobra)\" to the assignments to the "open.filter" property.  Search for "source.files" to find the location in the file.   
     26 * Add "{{{Cobra|cobra||\}}}" and "{{{Cobraproj|cobraproj||\}}}" to the list of languages set to the menu.language property.  Search for "menu.language=\" to find the location in the file. 
     27 * Add "import cobra" and "import cobraproj" to the list of imports.  Search for "import asm" to find the location in the file. 
     28 * OPTIONAL: Add a .cobra and .cobraproj file extensions, by adding "*.cobra;*.cobraproj" to the list of extensions assigned to the "source.files" property.  Then add "$(filter.cobra)\" and "$(filter.cobraproj)\" to the assignments to the "open.filter" property.  Search for "source.files" to find the location in the file.   
     29 
     30---- 
     31See also: EditorSupport