Hello,

On 4/7/10 7:22 PM, Êîíñòàíòèí wrote:

Hi all!


For easy editing kamailio configuration files I developed a syntax

highlighting scheme for  mc.

many thanks! I checked the format and should be easy to update it for 3.0.

I will try to find a place in the source tree to host this one along with vim syntax file. Should be easier to maintain for new version and install once sources are downloaded.

It works also in mac os x, with mc installed from macports. The difference is that Syntax file is located in /opt/local/etc/mc/. The alternative is to use home directory mc config: ~/.mc/cedit/Syntax (create the file if does not exist).

Cheers,
Daniel


Preview


The scheme includes basic syntactic structures of Kamailio 1.5,

all constants, variables, operators and standart core functions.


To install it, download the file kamailio.syntax from attachment and

copy it to /usr/share/mc/syntax (for Debian Etch)


Next, add to the file /usr/share/mc/syntax/Syntax including:


file ..\*\\.cfg$ Kamailio\sconfig

include kamailio.syntax


Thats all, I hope its helps someone ;)




-- 

 Shpinev Konstantin                          mailto:kks_mail@inbox.ru

_______________________________________________ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users

--
Daniel-Constantin Mierla * http://www.asipto.com/ * http://twitter.com/miconda * http://www.linkedin.com/in/danielconstantinmierla