Leben++

It's never too late to get a life!

Auf Kommentar antworten

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:

  1. Locate your jEdit settings folder. On Mac OS X and Linux it's usually a folder called .jedit inside your home folder. On Windows it's a folder also called .jedit in your home folder . It can be a hidden folder, so you may have to adjust the view settings of your file manager.
  2. Save the ael.xml file.
  3. Put the file in the folder .jedit/modes.
  4. Edit the file .jedit/modes/catalog and 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.

Antworten

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Keine HTML-Tags erlaubt
  • Zeilen und Absätze werden automatisch erzeugt.
By submitting this form, you accept the Mollom privacy policy.