[SR-Users] kamailio.cfg fomatter
Barry Flanagan
barry at flanagan.ie
Tue Nov 24 21:54:28 CET 2020
On Tue 24 Nov 2020, 20:21 marek, <cervajs64 at gmail.com> wrote:
> ok thanks. these things are for highlighting, but i asked about formatting
>
In Vim, I would type 'gg=G' to format the indentation.
Bring lazy I put the below in my .vimrc so I can just hit F7
map <F7> gg=G<C-o><C-o>
-Barry
something like
>
> https://code.visualstudio.com/docs/languages/typescript
>
> section "Formatting"
> any tips?
> Marek
>
> Dne 24/11/2020 v 19:42 Daniel-Constantin Mierla napsal(a):
>
> Besides the vim syntax for Kamailio that you pointed and the one for
> VSCode pointed by Marek, I also wrote one for Atom editor:
>
> *
> https://github.com/miconda/atom-extensions/tree/master/language-kamailio
>
> But probably is not updated with the latest core keywords.
>
> Then, even older and not updated (to my knowledge) is the of for mcedit
> (midnight commander editor), I wrote a blog post about:
>
> * http://blog.miconda.eu/2010/04/mc-edit-syntax-highlighting-for.html
>
> So, to summarize, there should be syntax highlighting (maintained at
> different levels) for the editors:
>
> * vim (I guess also neovim)
> * vscode
> * atom
> * mcedit
>
> Cheers,
> Daniel
> On 24.11.20 18:24, Sergiu Pojoga wrote:
>
> The only other Kam syntax I know of is for vim
>
> https://github.com/kamailio/vim-kamailio-syntax
>
> Regards,
> --Sergiu
>
> On Tue, Nov 24, 2020 at 11:39 AM marek <cervajs64 at gmail.com> wrote:
>
>> hi,
>>
>> i'm using https://github.com/miconda/vscode-kamailio-syntax in VScode.
>> its great!
>>
>> But i need format code. Are there some formatters for kamailio.cfg? It
>> can be for other editors than VScode.
>>
>> Marek
>>
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing Listsr-users at lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
> Funding: https://www.paypal.me/dcmierla
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing Listsr-users at lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20201124/32d04ad1/attachment.htm>
More information about the sr-users
mailing list