*** This is unsupported software. ***
Click here to download a ZIP containing Ada.dll (color syntax highlighting) and
ErrorParser.dll (parsing the GNAT error messages to place the cursor).
They are for CodeWright version 5.x, so I don't know if they'll work with
later versions.
To use, unpack them somewhere handy (e.g., the CW executable directory) and
add the following lines to the designated sections of CWRIGHT.INI:
[LibPreLoad]
LibPreload="F:\Programming\Editor\Custom\Ada.dll"
LibPreload="F:\Programming\Editor\Custom\ErrorParser.dll"
[Editor]
FilterAdd='Ada Files (*.adb;*.ads)','*.adb;*.ads',-1
ExtIndentEnableAssoc='.ada',3
ExtIndentEnableAssoc='.adb',3
ExtIndentEnableAssoc='.ads',3
[Compiler]
CompilerAssign='GNAT Ada','.ada'
CompilerAssign='GNAT Ada','.adb'
CompilerAssign='GNAT Ada','.ads'
CompilerAddCmd='GNAT Ada','"gcc -c %r%e"',48,
'"gcc -c -g %r%e"',48,'',0,'',0,'',0,'',0,'','','','',''
CompilerAddResponse='GNAT Ada',
[Extension.ada]
BufSetBackupSpec=''
BufSetTabStr='4 7'
BufSetMarginColumns=1,72
BufSetAutoIndentMode=0xff00
BufSetMaxTabCol=0x00c8
BufSetMaxVirtualLines=0x0002
ExtSetBufFlags=0x8c000488,0x301cff
ExtSetTemplateMacro=0,"\n"
ExtSetTemplateMacro=2,'@'
ExtSetTemplateMacro=1,'\t'
ExtSetStyle=.ada,1
[Extension]
ExtColorsAssoc='.ada',1
ExtIndentEnableAssoc='.ada',3
ExtSetDelimiters=.ada,,;().\+\-
ExtColorsAssoc='.ads',1
ExtIndentEnableAssoc='.ads',3
ExtSetDelimiters=.ads,,;().\+\-
ExtColorsAssoc='.adb',1
ExtIndentEnableAssoc='.adb',3
ExtSetDelimiters=.adb,,;().\+\-
ExtAlias=.adb,.ada
ExtAlias=.ads,.ada
(Assuming "F:\Programming\Editor\Custom" is the path to the files. Note
that the "CompilerAddCmd=" text lines should be all one line.)
You'll probably also want to append ";*.adb" and ";*.ads" to the following
lines presumably already in the CWRIGHT.INI file:
[Editor]
FilterProjAdd='Source Files','*.c;*.cpp;...',-1
FilterProjAdd='Header Files','*.h;*.hpp;...',-1
|