I’m 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 and share it .
What you get with this Asterisk 11 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.
Here’s the basic steps to install it in Notepad ++:
1- Import the asterisk.xml into notepad ++ by going into language–>define your language and click on import.
2- (Optional) for functions list to work, you have to mofify the file functionList.xml
in the notepad ++ directory and add this part:
<association userDefinedLangName="asterisk" id="my_asterisk_passer_id"/>
<parser id="my_asterisk_passer_id" displayName="asterisk" commentExpr="<!--([^-]|-(?!->))*-->">
<!-- Only match nodes with at least one attribute -->
<function
mainExpr="^\[(.*?)\]"
displayMode="$functionName">
<functionName>
<nameExpr expr="^\[(.*?)\]"/>
</functionName>
</function>
</parser>