<div dir="auto"><div><div data-smartmail="gmail_signature">On Tue 24 Nov 2020, 20:21 marek, <<a href="mailto:cervajs64@gmail.com">cervajs64@gmail.com</a>> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div>
    <p>ok thanks. these things are for highlighting, but i asked about
      formatting</p></div></blockquote></div></div><div dir="auto">In Vim, I would type 'gg=G' to format the indentation. </div><div dir="auto"><br></div><div dir="auto">Bring lazy I put the below in my .vimrc so I can just hit F7</div><div dir="auto"><br></div><div dir="auto">map <F7> gg=G<C-o><C-o></div><div dir="auto"><br></div><div dir="auto">-Barry</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
    <p>something like</p>
    <p><a href="https://code.visualstudio.com/docs/languages/typescript" target="_blank" rel="noreferrer">https://code.visualstudio.com/docs/languages/typescript</a></p>
    <p>section "Formatting"<br>
    </p>
    <div>any tips?</div>
    <div>Marek<br>
    </div>
    <div><br>
    </div>
    <div>Dne 24/11/2020 v 19:42
      Daniel-Constantin Mierla napsal(a):<br>
    </div>
    <blockquote type="cite">
      
      <p>Besides the vim syntax for Kamailio that you pointed and the
        one for VSCode pointed by Marek, I also wrote one for Atom
        editor:</p>
      <p>  * <a href="https://github.com/miconda/atom-extensions/tree/master/language-kamailio" target="_blank" rel="noreferrer">https://github.com/miconda/atom-extensions/tree/master/language-kamailio</a></p>
      <p>But probably is not updated with the latest core keywords.</p>
      <p>Then, even older and not updated (to my knowledge) is the of
        for mcedit (midnight commander editor), I wrote a blog post
        about:</p>
      <p>  * <a href="http://blog.miconda.eu/2010/04/mc-edit-syntax-highlighting-for.html" target="_blank" rel="noreferrer">http://blog.miconda.eu/2010/04/mc-edit-syntax-highlighting-for.html</a></p>
      <p>So, to summarize, there should be syntax highlighting
        (maintained at different levels) for the editors:</p>
      <p>  * vim (I guess also neovim)<br>
          * vscode<br>
          * atom<br>
          * mcedit</p>
      <p>Cheers,<br>
        Daniel<br>
      </p>
      <div>On 24.11.20 18:24, Sergiu Pojoga
        wrote:<br>
      </div>
      <blockquote type="cite">
        
        <div dir="ltr">
          <div dir="ltr">The only other Kam syntax I know of is for vim</div>
          <div dir="ltr"><br>
          </div>
          <div dir="ltr"><a href="https://github.com/kamailio/vim-kamailio-syntax" target="_blank" rel="noreferrer">https://github.com/kamailio/vim-kamailio-syntax</a><br>
          </div>
          <div dir="ltr"><br>
          </div>
          <div>Regards,</div>
          <div>--Sergiu</div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Tue, Nov 24, 2020 at
              11:39 AM marek <<a href="mailto:cervajs64@gmail.com" target="_blank" rel="noreferrer">cervajs64@gmail.com</a>>
              wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">hi,<br>
              <br>
              i'm using <a href="https://github.com/miconda/vscode-kamailio-syntax" rel="noreferrer noreferrer" target="_blank">https://github.com/miconda/vscode-kamailio-syntax</a>
              in VScode. <br>
              its great!<br>
              <br>
              But i need format code. Are there some formatters for
              kamailio.cfg? It <br>
              can be for other editors than VScode.<br>
              <br>
              Marek<br>
              <br>
              <br>
              _______________________________________________<br>
              Kamailio (SER) - Users Mailing List<br>
              <a href="mailto:sr-users@lists.kamailio.org" target="_blank" rel="noreferrer">sr-users@lists.kamailio.org</a><br>
              <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
            </blockquote>
          </div>
        </div>
        <br>
        <fieldset></fieldset>
        <pre>_______________________________________________
Kamailio (SER) - Users Mailing List
<a href="mailto:sr-users@lists.kamailio.org" target="_blank" rel="noreferrer">sr-users@lists.kamailio.org</a>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" rel="noreferrer">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
      </blockquote>
      <pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank" rel="noreferrer">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank" rel="noreferrer">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank" rel="noreferrer">www.linkedin.com/in/miconda</a>
Funding: <a href="https://www.paypal.me/dcmierla" target="_blank" rel="noreferrer">https://www.paypal.me/dcmierla</a></pre>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
Kamailio (SER) - Users Mailing List
<a href="mailto:sr-users@lists.kamailio.org" target="_blank" rel="noreferrer">sr-users@lists.kamailio.org</a>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" rel="noreferrer">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
  </div>

_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank" rel="noreferrer">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div></div>