[Freeswitch-dev] FreeSWITCH Wiki Update: Syntax Highlighting Now Available!
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
seems like it's ignoring the 'blockquote' now. see http://wiki.freeswitch.org/wiki/Dialplan_XML#Anatomy_of_the_XML_Dialplan On 3/23/2012 12:55 PM, Michael Collins wrote:
Hey all,
Hat tip to David Knell for figuring out how to get the GeSHi syntax highlighting to work on wiki.freeswitch.org <http://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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
participants (2)
-
Abaci
-
Michael Collins