<div dir="ltr"><div>And backticks work better for editors which aren&#39;t aware of the tilde style. <br></div><div><br></div><div>It is much easier to type three backticks than it is three tildes too.</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Sep 27, 2013 at 7:04 AM, m ali ayas <span dir="ltr">&lt;<a href="mailto:dev@maliayas.com" target="_blank">dev@maliayas.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
AFAIK backticks are commonly used and known. It&#39;d be good to support it<br>
in PHP Markdown Extra until a consensus spec rises.<br>
<br>
2013-09-27 14:48 tarihinde, Michel Fortin yazdı:<br>
<div class="im HOEnZb">&gt; I get a lot of requests for Github-style fenced code blocks in PHP Markdown Extra. While I despite the syntax -- it also happens to be a valid code span! -- I wonder whether I should relent on this. It seems to be bothering a lot of people (even those who know about the tilde-based fenced code block syntax).<br>

&gt;<br>
&gt; In Github-Flavored Markdown, a code block works like this:<br>
&gt;<br>
&gt;       ```php<br>
&gt;       some php code<br>
&gt;       ```<br>
&gt;<br>
&gt; Replace those backticks with tildes and you get a valid fenced code block in PHP Markdown Extra:<br>
&gt;<br>
&gt;       ~~~php<br>
&gt;       some php code<br>
&gt;       ~~~<br>
&gt;<br>
&gt; Of course, now Github also supports tilde for fenced code blocks. But their documentation only mention the backtick-based syntax.<br>
&gt; &lt;<a href="https://help.github.com/articles/github-flavored-markdown" target="_blank">https://help.github.com/articles/github-flavored-markdown</a>&gt;<br>
&gt;<br>
&gt; If take a look at Babelmark 2, it seems that most implementations supporting one also support the other.<br>
&gt; &lt;<a href="http://johnmacfarlane.net/babelmark2/?normalize=1&amp;text=```php%0Asome+php+code%0A```%0A" target="_blank">http://johnmacfarlane.net/babelmark2/?normalize=1&amp;text=```php%0Asome+php+code%0A```%0A</a>&gt;<br>

&gt; &lt;<a href="http://johnmacfarlane.net/babelmark2/?normalize=1&amp;text=~~~php%0Asome+php+code%0A~~~%0A" target="_blank">http://johnmacfarlane.net/babelmark2/?normalize=1&amp;text=~~~php%0Asome+php+code%0A~~~%0A</a>&gt;<br>

&gt;<br>
&gt; I wondered if some of you have any opinion to share on this.<br>
&gt;<br>
<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Markdown-Discuss mailing list<br>
<a href="mailto:Markdown-Discuss@six.pairlist.net">Markdown-Discuss@six.pairlist.net</a><br>
<a href="http://six.pairlist.net/mailman/listinfo/markdown-discuss" target="_blank">http://six.pairlist.net/mailman/listinfo/markdown-discuss</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><span style="font-family:arial;font-size:small">Jeff Barczewski</span><br><div><div style="font-family:arial;font-size:small">Founder of CodeWinds</div>
<div style="font-family:arial;font-size:small"><a href="http://codewinds.com/" target="_blank">http://codewinds.com/</a><br></div><div style="font-family:arial;font-size:small">Web developer training - screencasts, ebooks, webinars<br>
</div></div></div>
</div></div>