Wiki
Version 10 (modified by Charles, 5 years ago)

--

How to add Cobra (simplest):

The 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"

The 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.

An example cobraproj file, AppBuilder?.cobraproj:

AppBuilder.cobra
Interfaces.cobra
Interchange.cobra
Builder.WinForms.cobra
Builder.WinForms.Field.cobra
Builder.WinForms.Class.cobra

How to add Cobra While Preserving an existing Global Properties file:

To 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:

  • 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.
  • Add "import cobra" and "import cobraproj" to the list of imports. Search for "import asm" to find the location in the file.
  • 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.

See also

Attachments