It's a simple TextMate syntax highlight bundle for asterisk dialplan script language.
By default, PyCharm and other IntelliJ IDEs don't have dialplan support. It brings some challenges in the development process. I wrote TextMate bundle to have dialplan syntax highlighting in PyCharm.
Features:
- syntax highlighting
- code blocks support
- the color scheme depends on your IDE's settings
- Open IntelliJ IDE
- Open Preferences -> Editor -> TextMate Bundles
- Press + (add) button
- Choose asterisk.tmbundle directory
- Be happy;)
By default, dialplan syntax highlighting works with *.dialplan files. If you want to work with files with another extension you should change the config file.
- In asterisk.tmbundle directory open
Syntaxes/asterisk.tmLanguage - Find
fileTypeskey in the first part of the file - Change
dialplanin string section to your file extension
If you want to improve something follow the steps:
- Download TextMate text editor on your macOS
- Double-click on downloaded asterisk.tmbundle bundle and install it
- Open Bundles -> Edit bundles...
- Choose your bundle -> Language Grammars -> asterisk
- Do what you want;)
If you have some questions see documentation on https://macromates.com/textmate/manual/
