Together with the editor widget we supply a number of scanners, but if you need to edit a language not covered by the existing scanners, you need to write a new one.
The easiest way to create a new scanner is to take one of the existing scanners, that has a structure similar to the one you need, and then modify it. The language used to specify scanners is flex with a few extensions. You should read the README file in the tools/scannertool directory for more information.
You can compile your new scanner with the commands shown in Example 2-7. After that you can use the new scanner in the same way as the scanners distributed with the editor.