【问题标题】:Insert code content with highlightings in a table using the Markdown syntax in a Github Gist使用 Github Gist 中的 Markdown 语法在表格中插入带有突出显示的代码内容
【发布时间】:2014-08-06 03:47:18
【问题描述】:

如何在 Github Gist 中使用 Markdown 语法在表格中插入带有突出显示的代码内容。这是我想要得到的最终结果:

问题详情:

这是创建具有简单内容的表格的基本 Markdown 语法:

PHPStructuredData | Plugin | Microdata | RDFa Lite 1.1
--- | --- | --- | ---
php code here | php code here | html code here | html code here

结果将是:

问题是当您需要在表格中插入带有突出显示的代码内容时:

PHPStructuredData | Plugin | Microdata | RDFa Lite 1.1
--- | --- | --- | ---
```php
<?php
$sd->property('url')->display();
?>
``` | php code here | html code here | html code here

不想要的结果是:

【问题讨论】:

  • 你能粘贴一些你试过的代码吗?
  • @LukePeterson 感谢反馈,代码已添加。

标签: github markdown gist


【解决方案1】:

这可能是Github markdown, syntax highlight of code blocks in the table cell 的解决方案,但正如您所见,语法突出显示没有按预期工作。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-05
    • 2019-05-21
    • 2015-04-14
    • 2012-11-08
    • 1970-01-01
    相关资源
    最近更新 更多