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
https://lists.kamailio.org/cgi-bin/mailman
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
>> README.
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:
>
> * https://github.com/kamaili
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:
;;
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 Heinanen
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 oraganization,
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
>>>
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 the
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 c
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
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
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
>
> https://code.visualstu
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 poin
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
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 som
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-u
16 matches
Mail list logo