[Freeswitch-dev] FreeSWITCH Wiki Update: Syntax Highlighting Now Available!

Michael Collins msc at freeswitch.org
Fri Mar 23 19:55:44 MSK 2012


Hey all,

Hat tip to David Knell for figuring out how to get the GeSHi syntax
highlighting to work on wiki.freeswitch.org! If you'd like to have syntax
highlighting on a snippet of code just do this:

<source lang="{lang}">
...code...
</source>

Languages include: c, perl, python, xml, lua, etc.

Example:
<source lang="xml">
  <extension name="test ext">
    <condition field="destination_number" expression="^(1234)$">
      <action application="answer"/>
      <action application="log" data="INFO Thanks David!!"/>
      <action application="hangup"/>
    </condition>
  </extension>
</source>

I added the basic information to this page on the wiki:
http://wiki.freeswitch.org/wiki/Documentation_Guidelines#Wiki_Markup

If you would like a non-glamorous but useful task to do: feel free to edit
each code sample you see to have the <source> tag with the appropriate
language. Also, if there are any GeSHi warriors out there who could write a
FreeSWITCH Log syntax highlighter module I'm sure that would be welcomed. :)

Thanks again!
-Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120323/dde286f5/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev mailing list