Asterisk UDL notepad ++

I've been using asterisk quite a lot with notepad ++ combined with WinSCP.I could not find any good user defined language for color coding and basic autocomplete.I decided to make my own . Very useful when you have a big dial plan.

What you get with this Asterisk 13 UDL:

1- Applications keywords in BLUE
2- Functions keywords in RED
3- All built-in variables in PURPLE
4- Comments in GREEN
5- Configuration file settings name in PINK
6- Context,Macro, Subroutines in ORANGE
7- Pattern matching in RED
8- Short description on all Functions and Applications
9- Jump to context,macro,subroutines (View--->Function Lists in Notepad ++)

You can add notepad ++ as the preferred editor in the WinSCP option.


Image

Image

Image

 


Here are the basic steps to install it in Notepad ++:

1- Import the Asterisk_13_UDL.xml into notepad ++ by going into language-->define your language and click on import.

2- Copy Asterisk.xml into the \plugins\APIs of notepad ++.

3- Modify the file functionList.xml or download mine and put it in the right directory.
You will have to modify it in %APPDATA%\notepad++\ if installed or in Notepad++ installed directory if using a zip package or portable version.

 

 
<association userDefinedLangName="asterisk" id="my_asterisk_passer_id"/>



<parser id="my_asterisk_passer_id" displayName="asterisk" commentExpr="&lt;!--([^-]|-(?!-&gt;))*--&gt;">
            <!-- Only match nodes with at least one attribute -->
            <function
                mainExpr="^\[(.*?)\]"
               displayMode="$functionName">
               <functionName>
                  <nameExpr expr="^\[(.*?)\]"/>
               </functionName>
            </function>
</parser>
 
 

 

Download it here: http://goo.gl/ZSQQf6