Syntaxhighlighter in wp

/* clear styles */
.dp-highlighter ol,
.dp-highlighter ol li,
.dp-highlighter ol li span
{
	margin: 0;
	padding: 0;
	border: none;
}

처음엔 Alex Gorbatchev가 제공하는 Syntax highlighter를 사용할 수 없나 고민했으나,

WP에서도 Syntax highlighting을 지원한다는 것을 알게 됐다.. Alex의 것과 똑같은 것이니

따로 작업할 필요도 없네..

사용법)

[sourcecode lanuage="css"]

your code here

[/sourcecode]

지원언어)

  • actionscript3
  • bash
  • coldfusion
  • cpp
  • csharp
  • css
  • delphi
  • erlang
  • diff
  • groovy
  • javascript
  • java
  • javafx
  • objc
  • perl
  • php
  • text
  • powershell
  • python
  • ruby
  • scala
  • sql
  • vb
  • xml

Ref)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s