Skip to content

Visual Studio Code (VSCode) - extension for Kamailio scripting language syntax highlighting

License

Notifications You must be signed in to change notification settings

miconda/vscode-kamailio-syntax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VSCode Extension - Kamailio Syntax Highlighting

This Visual Studio Code (VSCode) extension provides syntax highlighting for editing Kamailio SIP Server configuration files.

More details about Kamailio SIP Server project can be found at:

The code for this extension is hosted at:

Features

Syntax highlighting for:

  • line comments
  • block comments
  • preprocessor directive
  • routing block names
  • variables, indexes and transformations
  • string and integer values
  • reserved keywords

A screenshot while editing the kamailio.cfg file with this extension enabled:

Usage Example

Installation

The extension is published on VSCode Marketplace at:

To install it from the marketplace, launch VS Code Quick Open (Cmd+P or ⌘+P), paste the following command, and press enter.

ext install kamailio-syntax

To install from Git repository, clone it to your account VSCode folder (on MacOS or Linux, that is ~/.vscode/extensions):

cd ~/.vscode/extensions
git clone https://github.com/miconda/vscode-kamailio-syntax

The extension needs to be enabled from VSCode preferences.

Tested on MacOS, Linux, Windows (10)

Release Notes

1.0.8 (2020-12-01)

  • added name to control keywords list
  • added defenv to defines list
  • added all file type line
  • catch empty comment line started with #
  • match variables with index and transformations
  • the index and transformations are highlighted separately
  • split conditionals from keywords
  • highlight control functions in own group

For release notes of older versions, see CHANGELOG.md file.

Enjoy!

About

Visual Studio Code (VSCode) - extension for Kamailio scripting language syntax highlighting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published