內容簡介
SyntaxHighlighter2 讓您可以輕鬆地張貼語法高亮的程式碼,而不會失去其格式或做任何手動變更。
它支援以下語言(在文章中使用的別名在名稱旁列出):
AS3 — as, as3
C++ — cpp, c, c++
C# — c#, c-sharp, csharp
ColdFusion – cf, coldfusion
CSS — css
Delphi — delphi, pascal
Diff/Patches — diff
Erlang — erlang
Groovy — groovy
Java — java
JavaFX — javafx
JavaScript — js, jscript, javascript
Perl — perl
PHP — php
純文字 — plain
PowerShell — powershell
Python — py, python
Ruby — rb, ruby, rails, ror
Scala — scala
SQL — sql
VB — vb, vb.net
XML/HTML — xml, html, xhtml, xslt
本外掛程式使用 Alex Gorbatchev 的 SyntaxHighlighter JavaScript 套件。
其他 BBCode 方法
覺得 [sourcecode language='css']code here[/sourcecode] 打太長?以下是其他可以使用的範例:
[source language='css']code here[/source]
[code language='css']code here[/code]
[sourcecode lang='css']code here[/sourcecode]
[source lang='css']code here[/source]
[code lang='css']code here[/code]
[sourcecode='css']code here[/sourcecode]
[source='css']code here[/source]
[code='css']code here[/code]
PHP 版本
PHP 5+
外掛標籤
開發者團隊
原文外掛簡介
SyntaxHighlighter2 allows you to easily post syntax highlighted code all without loosing it’s formatting or making an manual changes.
It supports the following languages (the alias for use in the post is listed next to the name):
AS3 — as, as3
C++ — cpp, c, c++
C# — c#, c-sharp, csharp
ColdFusion – cf, coldfusion
CSS — css
Delphi — delphi, pascal
Diff/Patches — diff
Erlang — erlang
Groovy — groovy
Java — java
JavaFX — javafx
JavaScript — js, jscript, javascript
Perl — perl
PHP — php
Plain text — plain
PowerShell — powershell
Python — py, python
Ruby — rb, ruby, rails, ror
Scala — scala
SQL — sql
VB — vb, vb.net
XML/HTML — xml, html, xhtml, xslt
This plugin uses the SyntaxHighlighter JavaScript package by Alex Gorbatchev.
Other BBCode Methods
Find [sourcecode language='css']code here[/sourcecode] too long to type? Here’s some alternative examples:
[source language='css']code here[/source]
[code language='css']code here[/code]
[sourcecode lang='css']code here[/sourcecode]
[source lang='css']code here[/source]
[code lang='css']code here[/code]
[sourcecode='css']code here[/sourcecode]
[source='css']code here[/source]
[code='css']code here[/code]
PHP Version
PHP 5+
