How To
Add support for CHAU in ConTEXT highlighter file
If you have developed an highlighter file and you want to add support for CHAU you have just to add 2 lines below at begining of your .chl file, prefixed by //
- @version FILE_VERSION
- @url COMPLETE_URL_TO_FILE
Where
FILE_VERSION : Current version of file
COMPLETE_URL_TO_FILE : URL where last version of file is always available
The last up-to-date file will always contain for
- FILE_VERSION : last version of file
- COMPLETE_URL_TO_FILE : URL where last version of file is always available

Example
//@version 1.1
//@url http://drighetto.free.fr/files/miscellaneous/conTEXTHighlighters/TM1.chl

Example above in a ConTEXT highlighter file
//@version 1.1
//@url http://drighetto.free.fr/files/miscellaneous/conTEXTHighlighters/TM1.chl
////////////////////////////////////////////////////////////////////////
// Applix TM1 script highlighter (Rules and Turbo Integration)
// Author : Dominique Righetto
// Site : http://drighetto.free.fr
// Creation date : April 2006
// Version : 1.1
////////////////////////////////////////////////////////////////////////
Language: Applix TM1 scripting language
Filter: TM1 script (*.tm1,*.rux)|*.tm1;*.rux
........
If a file don't contain this tags, CHAU assume that the file isn't updateable and ignore it !
For this reason when you have prepared your file(s) for CHAU support you must distribute manually
the first version in order that users have an initialized version of your highlighter(s) installed,
after CHAU do the job for you... ;o)
Build installation cross-platform archive file with IzPack
If you have checkout project from CVS and you have enhanced application, you can create an installation archive file with IzPack.
Requirements are :
- Installation of IzPack application
- IzPack compilation script (named compile.bat or compile) must be available in PATH environment variable
- Presence of target directory and application packaged file
To create
target directory you can call one of this Maven2 command lines :
mvn clean compile test-compile
or
If requirements are satisfied, in the same directory that
install-builder.xml file (project root directory), use this command line :
compile install-builder.xml -b . -o target/CHAU-installer.jar -k standard
If IzPack processing is correctly finished, a file name
CHAU-installer.jar is created in
target directory...
Add support for others languages
You must only create a new properties file (resources bundle) in directory src/main/resources/translation, this file must contain language codes in is name.
Examples :
- For french language_fr_FR.properties
- For german language_de_DE.properties
- ....
The default translation file (english) is named
language.properties, others translation files must have the same structure and keys (code before '=' character) !