[WordPress] 使用 SyntaxHighlighter Evolved 來美化部落格裡的程式




選了半天,最後決定使用 SyntaxHighlighter Evolved 來顯示程式。 :p

選一個 Plugin 竟然可以花一整個晚上的時間。XD

範例:

[csharp]
internal class MySecurityTokenProvider : SecurityTokenProvider
{
X509Certificate2 certificate;

public MySecurityTokenProvider(X509Certificate2 certificate)
{
this.certificate = certificate;
}

protected override SecurityToken GetTokenCore(TimeSpan timeout)
{
return new X509SecurityToken(certificate);
}
}
[/csharp]




Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.