ddllzz
V2EX  ›  问与答

请教一个 Parsedown 的问题

  •  
  •   ddllzz · Jul 30, 2020 · 1084 views
    This topic created in 2127 days ago, the information mentioned may be changed or developed.

    官方的 Demo 中,代码块中的关键字指定了 tokenkeyword 类,哪位大佬知道这是如何生成的。

    <pre class=" language-php">
    	<code class=" language-php">
    		<span class="token keyword">public</span> 
    	</code>
    </pre>
    

    目前我的代码是:

    $Parsedown = new \ParsedownExtra();
    
    echo $Parsedown->text('xxxx');
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3160 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 12:49 · PVG 20:49 · LAX 05:49 · JFK 08:49
    ♥ Do have faith in what you're doing.