如何在WordPress文章中插入代码
1个回答
展开全部
方法/步骤
1
首先从网上下载出WordPress的插件Wp-syntax。
2
在编辑文章时,使用HTML的编辑方式插入以下代码<pre lang=”LANGUAGE” line=”0″>//“line为1时表示显示行号”</pre>
3
中间插入你的代码即可,LANGUAGE改为语言类型,例如php、java。line为0不显示行号,为1时显示
4
支
持的语言如下:abap, actionscript, actionscript3, ada, apache, applescript,
apt_sources, asm, asp, autoit, avisynth, bash, bf, bibtex, blitzbasic,
bnf, boo, c, c_mac, caddcl, cadlisp, cil, cfdg, cfm, cmake, cobol,
cpp-qt, cpp, csharp, css, d, dcs, delphi, diff, div, dos, dot, eiffel,
email, erlang, fo, fortran, freebasic, genero, gettext, glsl, gml,
bnuplot, groovy, haskell, hq9plus, html4strict, idl, ini, inno,
intercal, io, java, java5, javascript, kixtart, klonec, klonecpp, latex,
lisp, locobasic, lolcode lotusformulas, lotusscript, lscript, lsl2,
lua, m68k, make, matlab, mirc, modula3, mpasm, mxml, mysql, nsis,
oberon2, objc, ocaml-brief, ocaml, oobas, oracle11, oracle8, pascal,
per, pic16, pixelbender, perl, php-brief, php, plsql, povray,
powershell, progress, prolog, properties, providex, python, qbasic,
rails, rebol, reg, robots, ruby, sas, scala, scheme, scilab, sdlbasic,
smalltalk, smarty, sql, tcl, teraterm, text, thinbasic, tsql,
typoscript, vb, vbnet, verilog, vhdl, vim, visualfoxpro, visualprolog,
whitespace, whois, winbatch, xml, xorg_conf, xpp, z80
1
首先从网上下载出WordPress的插件Wp-syntax。
2
在编辑文章时,使用HTML的编辑方式插入以下代码<pre lang=”LANGUAGE” line=”0″>//“line为1时表示显示行号”</pre>
3
中间插入你的代码即可,LANGUAGE改为语言类型,例如php、java。line为0不显示行号,为1时显示
4
支
持的语言如下:abap, actionscript, actionscript3, ada, apache, applescript,
apt_sources, asm, asp, autoit, avisynth, bash, bf, bibtex, blitzbasic,
bnf, boo, c, c_mac, caddcl, cadlisp, cil, cfdg, cfm, cmake, cobol,
cpp-qt, cpp, csharp, css, d, dcs, delphi, diff, div, dos, dot, eiffel,
email, erlang, fo, fortran, freebasic, genero, gettext, glsl, gml,
bnuplot, groovy, haskell, hq9plus, html4strict, idl, ini, inno,
intercal, io, java, java5, javascript, kixtart, klonec, klonecpp, latex,
lisp, locobasic, lolcode lotusformulas, lotusscript, lscript, lsl2,
lua, m68k, make, matlab, mirc, modula3, mpasm, mxml, mysql, nsis,
oberon2, objc, ocaml-brief, ocaml, oobas, oracle11, oracle8, pascal,
per, pic16, pixelbender, perl, php-brief, php, plsql, povray,
powershell, progress, prolog, properties, providex, python, qbasic,
rails, rebol, reg, robots, ruby, sas, scala, scheme, scilab, sdlbasic,
smalltalk, smarty, sql, tcl, teraterm, text, thinbasic, tsql,
typoscript, vb, vbnet, verilog, vhdl, vim, visualfoxpro, visualprolog,
whitespace, whois, winbatch, xml, xorg_conf, xpp, z80
博思aippt
2024-07-20 广告
2024-07-20 广告
作为深圳市博思云创科技有限公司的工作人员,对于Word文档生成PPT的操作,我们有以下建议:1. 使用另存为功能:在Word中编辑完文档后,点击文件->另存为,选择PowerPoint演示文稿(*.pptx)格式,即可将文档内容转换为PPT...
点击进入详情页
本回答由博思aippt提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询