Dette innstikket er ikkje testa med dei tre siste utgåvene av WordPress. Det kan henda det ikkje blir vedlikehalde lenger, og kan ha problem med nyare versjonar av WordPress.

Syntax Highlighter++

Skildring

This plugin not only provides you syntax-highlighter , but also add a textarea and a button in the post page .
you just have to select the language , add code to the textarea and click the «OK» button , and you will get
your code highlighted in your atricle.
这个插件不仅仅提供了代码高亮,还在编辑页面增加了一个代码框和一个按钮,你只要选择好你的代码语言,把代码贴入代码框,
再点击一下OK按钮,你的带高亮的代码就会被插入到文章里去。

Supported Languge:
Bash
C
C++
C#
CSS
Delphi
Diff
Erlang
Groovy
HTML
Java
Javascript
Perl
PHP
PowerShell
Python
Ruby
SQL
VisualBasic
VB.NET
XML

Skjermbilete

  • Your code will be similar to this in you article.
  • The textarea and button in your post page .
  • Settings .

Installasjon

  1. Upload all files to your WordPress plugins directory, usually wp-content/plugins/ .
  2. Activate the plugin through the «Plugins» menu in WordPress.
  3. Done.

Vanlege spm.

Leave your FAQ

Omtalar

2. oktober 2017
Albeit plugin has not been updated for 3 years, with newest version still everything works as expected.
Les 1 omtale

Bidragsytarar og utviklarar

“Syntax Highlighter++” is open source software. The following people have contributed to this plugin.

Contributors

Endringslogg

2.5.0: Fix display problem in «Media»->’edit»

2.4.2: Add some editor support , thanks to huangzhiqun(http://huangzhiqun.com/).

2.4.1: Fix the bug , when you change the tagName , it doesn’t work.

2.4.0: Fix some bugs after update .

2.3.1:Adjust some syntax .

2.3.0:Roll back the SyntaxHighlighter core to version 2 , but preserve the AutoLoader.js to load .js file dynamically .

2.2.0:Update SyntaxHighlighter to version 3.0.83 && add option page .

2.1.0:Compress css and js files to make it faster .

2.0.3:Change the Core.css to make line auto-break , but still has some problem with firefox .

2.0.2:Fix a bug .

2.0.1:Add «Other» type .

2.0:Improve the compatibility to the new version of wordpress .

1.1.0:Improve the compatibility to all editors.