wordpress-代码高亮插件

一、SyntaxHighlighter Evolved

使用方法:
[code language="css"]
your code here
[/code]

The language (or lang) parameter controls how the code is syntax highlighted. The following languages are supported:高亮插件支持的语言有如下

actionscript3
bash
clojure
coldfusion
cpp
csharp
css
delphi
diff
erlang
fsharp
go
groovy
html
java
javafx
javascript
latex (you can also render LaTeX)
matlab (keywords only)
objc
perl
php
powershell
python
r
ruby
scala
sql
text
vb
xml
If the language parameter is not set, it will default to “text” (no syntax highlighting).

Code in between the source code tags will automatically be encoded for display, you don’t need to worry about HTML entities or anything.

二、Crayon Syntax Highlighter

可视化操作

三、simple code block

<!-- 古登堡编辑器,wordpress 5.0后 就采用这个了 -->
<?php>
asd
</php>
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments