jEdit Syntax highlighting for Asterisk AEL files
These days I'm doing some Asterisk work, creating AEL dial plan scripts for call center agents: Logging in and out, checking if the hotlines are staffed before allowing a pause, logging agent events to a separate logfile. For the scripts I'm using my favourite cross-platform editor jEdit. At the moment, jEdit has no syntax highlighting for AEL files, so I put one together myself. For a while, the file was hosted on snippets.dzone.com but since I improved on it, I'd rather host it on GitHub for easier download and modification.
Here it is:
How to install:
- Locate your jEdit settings folder. On Mac OS X and Linux it's usually a folder called
.jeditinside your home folder. On Windows it's a folder also called.jeditin your home folder . It can be a hidden folder, so you may have to adjust the view settings of your file manager. - Save the
ael.xmlfile. - Put the file in the folder
.jedit/modes. - Edit the file
.jedit/modes/catalogand add the following line:
<MODE NAME="AEL" FILE="ael.xml" FILE_NAME_GLOB="*.ael" />
jEdit will automatically detect all changes and refresh the snytax highlighting.
At the moment, handling of nested braces, for example in an expression like Set(MyExten=${EXTEN:0:${MyLength}}) is not highlighted properly. If you'd like to contribute here or do other changes, feel free to do so.
Neueste Kommentare
vor 37 Wochen 6 Tage
vor 38 Wochen 4 Tage
vor 1 Jahr 6 Tage