2012-07-06 44 views
0

我正在尝试在wordpress中创建一个博客。由于我可能需要添加一些代码块到我的帖子,我想知道是否有任何CSS代表块代码块。如何将代码区CSS样式添加到HTML

一个非常简单的例子是计算器代码标签(如下图所示)

<script type="text/javascript"> 
    alert('this is example of what i need to do ') ; 
    </script> 

enter image description here

+0

这就是所谓的语法突出显示 – SLaks 2012-07-06 16:49:35

+0

我们如何将其渲染到我们的html代码 – 2012-07-06 16:50:56

+0

查看Google Prettyprint:http://google-code-prettify.googlecode.com/svn/trunk/README.html – ajm 2012-07-06 16:51:18

回答

相关问题