ddllzz
V2EX  ›  问与答

请教一个 Parsedown 的问题

  •  
  •   ddllzz · Jul 30, 2020 · 1178 views
    This topic created in 2208 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   ·   5812 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 06:24 · PVG 14:24 · LAX 23:24 · JFK 02:24
    ♥ Do have faith in what you're doing.