wordpressでコードハイライト化
以下のようにかけばOKだった
————————————————-
[sourcecode language='css']
/*CSSコード*/
h1 {
height: 100px;
}
[/sourcecode]
[sourcecode language='ruby']
#テンポラリファイルを開く
temp_file = Tempfile.new(“lv_temp”)
file_path2.each {|path2|
next unless /procs20/s =~ path2
File.open(path2){|file|
file.each{|line|
temp_file.print line
}
}
}
[/sourcecode]
————————————————-
Tags: WordPress