Re: [SR-Users] kamailio.cfg fomatter

2020-12-10 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > You can add the new file there and eventually a few notes in the > README.md how to install it. Done, Juha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org

Re: [SR-Users] kamailio.cfg fomatter

2020-12-10 Thread Daniel-Constantin Mierla
Thanks! Published a news article about it:   * https://www.kamailio.org/w/2020/12/emacs-syntax-highlighting-for-kamailio-cfg/ Cheers, Daniel On 10.12.20 11:00, Juha Heinanen wrote: > Daniel-Constantin Mierla writes: > >> You can add the new file there and eventually a few notes in the >>

Re: [SR-Users] kamailio.cfg fomatter

2020-12-10 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > this is syntax highlighting for kamailio.cfg, right? Yes, plus indentation, which it inherits from c-mode. > We can create a repo on kamailio github oraganization, like > emacs-kamailio-syntax, similar to what is now for vim: > >   *

[SR-Users] kamailio.cfg fomatter

2020-12-10 Thread Juha Heinanen
After noticing that emacs mode is missing, below is my first cut of kamailio-mode.el. -- Juha --- ;; kamailio mode for emacs (function list is not complete) ;; activate by starting your kamailio.cfg with this kind of line: ;;

Re: [SR-Users] kamailio.cfg fomatter

2020-12-10 Thread Daniel-Constantin Mierla
I created the repo:   * https://github.com/kamailio/emacs-kamailio-syntax You can add the new file there and eventually a few notes in the README.md how to install it. Otherwise, any existing developer should be able to push commits to this repo. Cheers, Daniel On 10.12.20 09:33, Juha

Re: [SR-Users] kamailio.cfg fomatter

2020-12-10 Thread Daniel-Constantin Mierla
Hello, this is syntax highlighting for kamailio.cfg, right? Just to clarify better to what was asked for earlier on the mailing list as code formatter, which was expected to do indentation of the file content (a-la clang-format for c files). We can create a repo on kamailio github

Re: [SR-Users] kamailio.cfg fomatter

2020-11-25 Thread Daniel-Constantin Mierla
On 24.11.20 21:56, Alex Balashov wrote: > On 11/24/20 1:48 PM, Juha Heinanen wrote: > >> Daniel-Constantin Mierla writes: >> >>> So, to summarize, there should be syntax highlighting (maintained at >>> different levels) for the editors: >>> >>>    * vim (I guess also neovim) >>>    * vscode >>>  

Re: [SR-Users] kamailio.cfg fomatter

2020-11-25 Thread Daniel-Constantin Mierla
On 24.11.20 19:48, Juha Heinanen wrote: > Daniel-Constantin Mierla writes: > >> So, to summarize, there should be syntax highlighting (maintained at >> different levels) for the editors: >> >>   * vim (I guess also neovim) >>   * vscode >>   * atom >>   * mcedit > Long list, but unfortunately

Re: [SR-Users] kamailio.cfg fomatter

2020-11-25 Thread Daniel-Constantin Mierla
I haven't done any formatting extensions, that's why I didn't reply to your email, but to the one from Sergiu to complete the list of syntax highlighting options. I use rarely gg=G with vim, as pointed in another response, but for me it shifts left the comments in route blocks, so in most of the

Re: [SR-Users] kamailio.cfg fomatter

2020-11-24 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > So, to summarize, there should be syntax highlighting (maintained at > different levels) for the editors: > >   * vim (I guess also neovim) >   * vscode >   * atom >   * mcedit Long list, but unfortunately the oldest editor is missing: emacs. -- Juha

Re: [SR-Users] kamailio.cfg fomatter

2020-11-24 Thread Alex Balashov
On 11/24/20 1:48 PM, Juha Heinanen wrote: Daniel-Constantin Mierla writes: So, to summarize, there should be syntax highlighting (maintained at different levels) for the editors:   * vim (I guess also neovim)   * vscode   * atom   * mcedit Long list, but unfortunately the oldest editor

Re: [SR-Users] kamailio.cfg fomatter

2020-11-24 Thread Barry Flanagan
On Tue 24 Nov 2020, 20:21 marek, 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 gg=G -Barry something like > >

Re: [SR-Users] kamailio.cfg fomatter

2020-11-24 Thread marek
ok thanks. these things are for highlighting, but i asked about formatting 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

Re: [SR-Users] kamailio.cfg fomatter

2020-11-24 Thread Daniel-Constantin Mierla
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

Re: [SR-Users] kamailio.cfg fomatter

2020-11-24 Thread Sergiu Pojoga
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 wrote: > hi, > > i'm using https://github.com/miconda/vscode-kamailio-syntax in VScode. > its great! > > But i need format code. Are there

[SR-Users] kamailio.cfg fomatter

2020-11-24 Thread marek
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