Both the Kate and KWrite editor can be used to edit Chi and CIF files. They can be used without any modifications. However, it is possible to configure them to be even more useful editors.
It is possible to get syntax highlighting of Chi and CIF models in the Kate editor. This is in no way necessary for editing or simulation, but can be very helpful non the less. To get syntax highlighting for Chi and CIF models in Kate/KWrite, follow these steps:
After following these steps, open a .chi or .cif file in Kate or KWrite to test the syntax highlighting. If you create a new file in Kate/KWrite, you need to save it first to get syntax highlighting to be activated. You need to use the correct file extension when you save the file (.chi for Chi and .cif for CIF).
If it doesn't work, you can do the following to found out why:
Possible solutions if syntax highlighting does not work (try them after closing all Kate/KWrite applications first):
The Kate editor has many configurable settings. Here are some suggestions for settings you can change:
The same applies to the KWrite editor, although some names etc will be different. For instance, the 'Configure Kate…' menu option is called 'Configure Editor…' and the left side doesn't contain the 'Editor' item, only the sub-items.