Description
This plugin is code syntax highlighter based on Alex Gorbatchev’s SyntaxHighlighter ver. 3.0.83 and 2.1.382.
Features
- Based on Alex Gorbatchev’s âSyntaxHighlighterâ JavaScript library.
- Including both SyntaxHighlighter 3.0.83 and 2.1.382.(Can switch between 3.0.83 and 2.1.382.)
- Built-in TinyMCE buttons and Quicktag button are easy to operate.
- Easy to wrap your code in
<pre>
tag and change options of previously-wrapped code. - Support shortcode also.
- Easy to highlight code in comments using buttons.(WordPress 3.0 or higher)
- Widget to show highlighted code.
- Support bbPress plugin 2.0 or higher.
- Support âDynamic Brush Loadingâ which allows to load only necessary brush files dynamically.
- Loading JavaScripts on only posts, pages, home, archives, search results and comments which have the code to highlight.
- Easy to configure features through the setting panel.
- Localization: English(Default), æ„æŹèȘ(Japanese, UTF-8).
Supported languages
AppleScript, ActionScript3, Bash, ColdFusion, C, C++, C#, CSS, Delphi, Diff, Erlang, Groovy, HTML, Java, Java FX, JavaScript, Pascal, Patch, Perl, PHP, Plain text, PowerShell, Python, Ruby, Ruby on Rails, Sass, SCSS, Shell, SQL, VB, VB NET, XHTML, XML and XSLT
Note: A part of languages are only for SyntaxHighlighter 3.0.
You can also use a bundled plugin to add following languages.
Biferno, Clojure, DOS batch file, F#, LISP, Lua(only for SyntaxHighlighter 3.0), MEL Script, Objective-C, PowerCLI, Processing, R, S, S-PLUS, Tcl, Verilog, Vim Script and YAML
For details, see âsampleâ directory.
There are many other languages for âSyntaxHighlighterâ. But I can’t bundle them because they are not compatible with this plugin license. If you want, try to search.
Recommended plugin
- âSyntaxHighlighter TinyMCE Buttonâ can provide feature-rich tinyMCE buttons for SyntaxHighlighter.
- âCodeMirror for CodeEditorâ can highlight sourcecodes in theme and plugin editor and provide a useful toolbar.
Thanks
- âSyntaxHighlighterâ libraries was created by Alex Gorbatchev.
- âshBrushBiferno.jsâ was created by Sandro Bilbeisi.
- âshBrushClojure.jsâ was created by Daniel Solano GĂłmez.
- âshBrushDosBatch-V2.jsâ and âshBrushDosBatch-V3.jsâ were created by Andreas Breitschopp. He also developed nice plugins.
- F# brush was written by Steve Gilham.
- âshBrushLisp.jsâ was created by Knut Haugen.
- âshBrushLua.jsâ was created by ì”ì”í.
- âshBrushMel.jsâ was created by Skye Book.
- âshBrushObjC.jsâ was created by Matej Bukovinski.
- âshBrushPowerCLI.jsâ was created by Dan J.
- âshBrushProcessing.jsâ was created by Sebastian Korczak.
- The css for âshBrushProcessing.jsâ was written by Sebastian Korczak.
- âshBrushR.jsâ was created by Yihui Xie.
- âshBrushTcl.jsâ was created by henix.
- âshBrushVerilog.jsâ was created by Hanly De Los Santos.
- âshBrushVimscript.jsâ was created by nelstrom(Drew Neil).
- âshBrushYaml.jsâ was created by Nicolas Perriault.
- Judah revised the awkward descriptive text that was shown before comment form.
Screenshots
Installation
Installation
- Upload plugin folder to the
/wp-content/plugins/
directory. - Activate the plugin through the âPluginsâ menu in WordPress.
- If you need, go to âSettingsâ -> âWP SyntaxHighlighterâ to configure.
Usage in Visual editor
Note: The build-in âSH TinyMCE Buttonâ can work only with the default visual editor(TinyMCE). Other visual editors(e.g. CKEditor etc.) are not supported.
Note: If you don’t have âunfiltered_htmlâ capability, <!--[XXXX]-->
can’t be included in your code.
XXXX = 2-4 letter character string including 0-9, A-F or a-f.
Usage: Wrap your code in <pre>
tag with âSH TinyMCE Buttonâ.
If you have previously-written code on your post or page, by this way, you can wrap your code in <pre>
tag for âSyntaxHighlighterâ.
- With the mouse, select and highlight your code where you want to aplly âSyntaxHighlighterâ.
- Click âpreâ button.
- Select language and options.
- Click âInsertâ button.
Usage: Paste your code into the post or page with âSH TinyMCE Buttonâ.
If you want to copy the code from the other document and paste into your post or page, this way is best. Your pasted code will be warpped in <pre>
tag automatically.
- Click âCODEâ button.
- Select language and options and paste your code into textbox.
- Click âInsertâ button.
Usage: Change language and options of previously-markuped code with âSH TinyMCE Buttonâ.
- With the mouse, select and highlight your code.
- Click âpreâ button.
- Change language and options.
- Click âUpdateâ button.
Usage: Indent by tabs.
- Just type tab in your code. But till your code is wrapped in
<pre>
tag, you can not type any tabs.
Usage in HTML editor
Note: If you don’t have âunfiltered_htmlâ capability, <!--[XXXX]-->
can’t be included in your code.
XXXX = 2-4 letter character string including 0-9, A-F or a-f.
Usage: Wrap your code in <pre>
tag with âSH preâ button.
If you have previously-written code on your post or page, by this way, you can wrap your code in <pre>
tag for âSyntaxHighlighterâ.
Note: Before you use âSH preâ button, you may need to go to setting panel and activate âAdd Quicktag Buttonâ option in âHTML Editor Settingsâ section.
- With the mouse, select and highlight your code where you want to aplly âSyntaxHighlighterâ.
- Click âSH preâ button.
- Select language and options.
- Click âOKâ button. Then your code will be wrapped in
<pre>
tag and escape to HTML entities.
Usage: Wrap your code in <pre>
tag without âSH preâ button.
- Just wrap Your Code in
<pre>
tag with the class attribute as below in HTML editor or using the âPreformattedâ style in Visual editor.
You do not need to escape your code to HTML entities. This plugin will escape your code to HTML entities automatically after saving. However, To prevent destroying your code after switching to âVisual editorâ, You had better escape your code to HTML entities or save it before switching to âVisual editorâ.
Note: If </pre>
tags are included in your code, replace </pre>
with <!--[/pre]-->
.
<pre class="brush: lang">Your Code</pre> *"lang" = your language
- e.g.
<pre class="brush: php">Your PHP Code</pre>
- e.g.
<pre class="brush: xhtml">Your XHTML Code</pre>
See âAvailable languagesâ. *âBrush aliasesâ means âlangâ.
You can also use some options with <pre>
tag.
See âOptionsâ.
- e.g.
<pre class="brush: xhtml; first-line: 10">Your XHTML Code</pre>
- e.g.
<pre class="brush: php; html-script: true">Your PHP Code</pre>
This plugin also can support <script>
tag method. However, No one should use <script>
tag. You must use âHTML editorâ to type <script>
tag, and when switching to âVisual editorâ, TinyMCE will destroy your tag.
Even if using ââ method, your codes must be escape to HTML entities.
Just escape following 3 characters: <, >, &
Usage: Wrap your code in shorcode(without unsig buttons).
You can also wrap your in âshorcodeâ to highlight your code without using buttons.
Note: Before you use âshorcodeâ, you must go to setting panel and activate âSupport shortcodeâ option in âHTML Editor Settingsâ section.
Note: Don’t edit a post/page with codes wrapped in shortcode in âVisual editorâ or switch from âHTML editorâ to âVisual editorâ. When your code wrapped in shorcode is displayed in Visual editor, âVisual editorâ will destroy your code.
- e.g.
Your PHP Code
- e.g.
Your XHTML Code
This plugin supports WordPress.com’s posting sourcecode method.
Posting Source Code — Support — WordPress.com
You do not need to escape your code to HTML entities. This plugin will escape your code to HTML entities automatically.
Note: The shorcodes can’t be included in your code.
Post a comment with code(s)
Note: Once you enable âCommnetsâ in âHiglight your code inâ option through the setting panel, this plugin allows visitors to post their source code as comments.
Note: The default comment form is required to highlight codes in comments. When default comment system is replaced with other(e.g. DISQUS etc.) or closed, the codes in commnets can’t be highlighted and âComment Highlighter Buttonâ can’t be shown.
Note: If you don’t have âunfiltered_htmlâ capability, <!--[XXXX]-->
can’t be included in your code.
XXXX = 2-4 letter character string including 0-9, A-F or a-f.
If you use WordPress 3.0 or higher, you had better enable âComment Highlighter Buttonâ in the setting panel. âComment Highlighter Buttonâ will help visitors to post a comment with their sourcecodes and highlight them.
Usage: Post a comment with codes using â<pre>
tagâ button.
- Paste your code in the comment form.
- Select it and then click the language link button.
- This will wrap your code in
<pre>
tag and format it when submitted
You do not need to escape your code to HTML entities. This plugin will escape your code to HTML entities automatically.
Note: <!--[/pre]-->
can’t be included in your code.
Usage: Post a comment with codes using âShorcodeâ button.
- Paste your code in the textarea.
- Select it and then click the language link button.
- This will wrap your code in shortcode(like a BBcode) and format it when submitted
You do not need to escape your code to HTML entities. This plugin will escape your code to HTML entities automatically.
Note: The shorcodes can’t be included in your code.
Usage: Wrap your code in <pre>
tag(without unsig buttons).
You can also enter <pre>
tag directly without using âComment Highlighter Buttonâ.
-
Just wrap Your Code in
<pre>
tag with the class attribute as when you use HTML editor without âSH preâ button.Your Code
*âlangâ = your language
- e.g.
<pre class="brush: php">Your PHP Code</pre>
You do not need to escape your code to HTML entities. This plugin will escape your code to HTML entities automatically.
Note: If </pre>
tags are included in your code, replace </pre>
with <!--[/pre]-->
.
Usage: Wrap your code in shorcode(without unsig buttons).
You can also enter âshorcodeâ directly without using âComment Highlighter Buttonâ.
Note: Before you use âshorcodeâ, you must go to setting panel and activate âSupport shortcodeâ option in âComment Form Settingsâ section.
- e.g.
Your PHP Code
- e.g.
Your XHTML Code
This plugin supports WordPress.com’s posting sourcecode method.
Posting Source Code — Support — WordPress.com
You do not need to escape your code to HTML entities. This plugin will escape your code to HTML entities automatically.
Note: The shorcodes can’t be included in your code.
Usage: Update comments.(For administrator)
You can use âSH preâ button in the âComment editorâ.
Note: Note: Before you use âSH preâ button, you may need to go to setting panel and activate âAdd Quicktag Buttonâ option in âComment Editor Settingsâ section.
You can also wrap your code in <pre>
tag or shortcode without using âSH preâ button.
Note: Before you use âshorcodeâ, you must go to setting panel and activate âSupport shortcodeâ option in âComment Form Settingsâ section.
WP SyntaxHighlighter Widget
âWP SyntaxHighlighter Widgetâ is the widget to show highlighted code.
Before you use âWP SyntaxHighlighter Widgetâ, you must enable âUse WP SyntaxHighlighter Widgetâ in setting panel. Then go to âWidgetsâ section under âAppearanceâ menu to add the âWP SyntaxHighlighter Widgetâ in your sidebar.
You can use plain text, html tag and sourcecode in the widget.
Usage: Using â<pre>
tagâ button.
- Paste your code in the textarea.
- Select it and then click the language link button.
- This will wrap your code in
<pre>
tag.
You do not need to escape your code to HTML entities. This plugin will escape your code to HTML entities automatically.
Note: <!--[/pre]-->
can’t be included in your code.
Usage: Using âShorcodeâ button.
- Paste your code in the textarea.
- Select it and then click the language link button.
- This will wrap your code in shortcode(like a BBcode).
You do not need to escape your code to HTML entities. This plugin will escape your code to HTML entities automatically.
Note: The shorcodes can’t be included in your code.
Usage: Wrap your code in <pre>
tag(without unsig buttons).
You can also enter <pre>
tag directly without using buttons.
-
Just wrap your code in
<pre>
tag with the class attribute as when you use HTML editor without âSH preâ button.Your Code
*âlangâ = your language
- e.g.
<pre class="brush: php">Your PHP Code</pre>
You do not need to escape your code to HTML entities. This plugin will escape your code to HTML entities automatically.
Note: If </pre>
tags are included in your code, replace </pre>
with <!--[/pre]-->
.
Usage: Wrap your code in shorcode(without unsig buttons).
You can also enter âshorcodeâ directly without using buttons.
Note: Before you use âshorcodeâ, you must go to setting panel and activate âSupport shortcodeâ option in âWP SyntaxHighlighter Widget Settingsâ section.
- e.g.
Your PHP Code
- e.g.
Your XHTML Code
This plugin supports WordPress.com’s posting sourcecode method.
Posting Source Code — Support — WordPress.com
You do not need to escape your code to HTML entities. This plugin will escape your code to HTML entities automatically.
Note: The shorcodes can’t be included in your code.
bbPress
If bbPress plugin(2,0 or higher) is installed and activated, âbbPress Highlighter Buttonâ can be shown above topic/reply form to make easy to post sourcecodes.
Before you use âbbPress Highlighter Buttonâ, you must enable âbbPress Highlighter Buttonâ in setting panel.
Note: If you don’t have âunfiltered_htmlâ capability, <!--[XXXX]-->
can’t be included in your code.
XXXX = 2-4 letter character string including 0-9, A-F or a-f.
Usage: Post a topic/reply with codes using â<pre>
tagâ button.
- Paste your code in the topic/reply form.
- Select it and then click the language link button.
- This will wrap your code in
<pre>
tag and format it when submitted
You do not need to escape your code to HTML entities. This plugin will escape your code to HTML entities automatically.
Note: <!--[/pre]-->
can’t be included in your code.
Usage: Post a topic/reply with codes using âShorcodeâ button.
- Paste your code in the topic/reply form.
- Select it and then click the language link button.
- This will wrap your code in shortcode(like a BBcode) and format it when submitted
You do not need to escape your code to HTML entities. This plugin will escape your code to HTML entities automatically.
Note: The shorcodes can’t be included in your code.
Usage: Wrap your code in <pre>
tag(without unsig buttons).
You can also enter <pre>
tag directly without using âbbPress Highlighter Buttonâ.
-
Just wrap Your Code in
<pre>
tag with the class attribute as when you use HTML editor without âSH preâ button.Your Code
*âlangâ = your language
- e.g.
<pre class="brush: php">Your PHP Code</pre>
You do not need to escape your code to HTML entities. This plugin will escape your code to HTML entities automatically.
Note: If </pre>
tags are included in your code, replace </pre>
with <!--[/pre]-->
.
Usage: Wrap your code in shorcode(without unsig buttons).
You can also enter âshorcodeâ directly without using âbbPress Highlighter Buttonâ.
Note: Before you use âshorcodeâ, you must go to setting panel and activate âSupport shortcodeâ option in âbbPress Settingsâ section.
- e.g.
Your PHP Code
- e.g.
Your XHTML Code
This plugin supports WordPress.com’s posting sourcecode method.
Posting Source Code — Support — WordPress.com
You do not need to escape your code to HTML entities. This plugin will escape your code to HTML entities automatically.
Note: The shorcodes can’t be included in your code.
In Topics/Replies sections on the setting panel
In Topics/Replies sections, Use âpreâ and âcodeâ buttons in Visual editor or âSH preâ button in HTML editor.
Note: Note: Before you use âSH preâ button, you may need to go to setting panel and activate âAdd Quicktag Buttonâ option in âHTML Editor Settingsâ section.
You can also wrap your code in <pre>
tag or shortcode without using âSH preâ button.
Note: Before you use âshorcodeâ, you must go to setting panel and activate âSupport shortcodeâ option in âbbPress Settingsâ section.
Note: Don’t edit a topic/reply with code wrapped in shortcode in âVisual editorâ or switch from âHTML editorâ to âVisual editorâ. When your code wrapped in shorcode is displayed in Visual editor, âVisual editorâ will destroy your code.
Legacy mode
You can switch to âLegacy modeâ through setting panel.
âLegacy modeâ allows you to use the old style tag in SyntaxHighlighter ver. 1.5 library(Not mean WP SyntaxHighlighter ver. 1.5).
Your codes must be escape to HTML entities, even if using <textarea>
method.
Just escape following 5 characters: <, >, &, â, â
See âVer. 1.5 Usageâ.
In âLegacy modeâ, your selected brushes(languages) will be pre-loaded. Only pre-loaded brushes(languages) can highlight your source code with old style tag. The old style tag can’t depended on âautoloaderâ in ver. 3.0 mode. By default, all brushes(languages) will be pre-loaded in âLegacy modeâ.
âLegacy modeâ may save your previous posts with old style tag. However, No one should continue using old style tag. You must use âHTML editorâ to type old style tag.
Add new languages(brush files)
You can add new languages(brush files) using âAction hooksâ and associative array.
For details, see âsampleâ directory.
There is a sample plugin for adding new languages.
FAQ
- Q. The highlighted code can not be displayed. The code is displayed as just raw.
-
A. This plugin requires placing
<?php wp_head(); ?>
and<?php wp_footer(); ?>
in your theme files. You must place<?php wp_head(); ?>
before the closing head tag in header.php and place<?php wp_footer(); ?>
before the closing body tag in footer.php. - Q. Buttons are missing on my Visual editor.
-
A. This pluguin requires TinyMCE(default Visual editor). If you replaced default Visual editor with other(e.g. CKEditor etc.), Buttons can’t be shown on your Visual editor.
- Q. I want to change language and options of previously-markuped code with âpreâ button. But I can’t select whole my code.
-
A. You need not to select whole your code. It’s enough to select first line of your code.
- Q. After the update to new version, Buttons do not work correctly.
-
A. Old javascript files may be cached. Please clear your browser’s cache or delete cached javascript files.
- Q. How to stop translating my code with âGoogle Translateâ.
-
A. Go to setting panel and enter ânotranslateâ into âClass nameâ. When another class has already been defined, add ânotranslateâ separated by space.
- Q. I get a message saying âinvalidâ in a textarea on setting panel.
-
A. The value of textarea contains some character strings that are not allowed to use. Re-enter valid value and save it. It may occur after you upgraded to 1.5.6 or higher.
- Q. âSH preâ button(Quicktag) or other buttons in the editor doesn’t pop up a dialog box.
-
A. Go to setting panel and try to enable/disable âLoad jQuery and jQuery UIâ option in âHTML Editor Settingsâ(or âComment Editor Settingsâ) section.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“WP SyntaxHighlighter” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “WP SyntaxHighlighter” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.7.3
- Modified wp_sh_escape_code(), wp_sh_wp_filter_kses(), wp_sh_replace_marker(), wp_sh_add_extra_bracket() filters with preg_replace_callback().
- Added wp_sh_make_clickable() filter to apply make_clickable() to the content when the content includes no sourcecode.
- Fix a bug: Wrong regular expression in wp_sh_escape_code().
- Fix a bug: wp_sh_escape_code() can’t handle sourcecode including [sourcecode], [source] or [code].
- Fix a bug: WP SyntaxHighlighter version doesn’t be shown in â12. Your System Infoâ setting section.
1.7.2
- Added wp_sh_strip_shortcodes() and wp_sh_strip_shortcode_tag() for stripping shortcode tag.
1.7.1
- Fix a bug: Filters can’t handle sourcecodes including $n(n = numbers) correctly.
1.7
- Support bbPress plugin.
- Support shortcode.
- Added another button which makes easy to insert âshortcodeâ for the comment form.
- Added another button which makes easy to insert âshortcodeâ for âWP SyntaxHighlighter Widgetâ.
- Users without âunfiltered_htmlâ also can edit a post with codes.
- Comments before approved can be highlighted.
- Added new filters for posts.
- Replaced filters for comment with new ones.
- A part of defaut setting values changed.
- Bundled sample plugin can add new language(Biferno).
- Splited the main php file in order to reduce file size.
- Fix a bug: Added filters for comment form can’t handle sourcecodes including
&#xxx;
correctly. - Fix a bug: Using bloginfo() in the wrong way.
- Fix a bug: Some missing textdomains.
- Fix a bug: The mix LF and CR/LF in a part of SyntaxHighligter core files.
1.6.7
- Modified Quicktag processing to be compliant with WordPress 3.3.
- Added âQuick code copyâ option into the setting panel.
- Fix a bug: Wrong textdomain fot localization.
- Fix a bug: Wrong replacing
</pre>
tag in the code when comment updated.
1.6.5
- Added âSH preâ button into the Comment editor.
- Added âLoad jQuery and jQuery UIâ option into the setting panel.
- Enabled to escape souececodes to HTML entities automatically when updating a commnet.
- Fix a bug: Loaded jQuery UI component affects other ajax buttons.
- Fix a bug: When using WordPress 3.0.6 or older, âSH preâ button doesn’t work.
- Fix a bug: When using WordPress 2.9.2 or older, after saving changes, some setting values get empty. Some problems might come to the surface after upgrading to WordPress 3.0 or higher.
- Fix a bug: TinyMCE âcodeâ button can’t handle sourcecodes including HTML entities(
&
,<
,>
,"
,'
đ correctly. - Fix a bug: Added filters for comment form can’t handle sourcecodes including HTML entities(
&
,<
,>
,"
,'
đ correctly. - Fix a bug: âWP SyntaxHighlighter Widgetâ can’t handle sourcecodes including HTML entities(
&
,<
,>
,"
,'
đ correctly. - Fix a bug: A typo in setting values.
1.6
- Added âSH preâ button to HTML editor. It make easy to wrap your code in
<pre>
tag.
1.5.8
- Rewritten the codes for array definition.
- Fix a bug: When using code button, some browsers give extra line break.
1.5.7
- Validating the setting values more closely.
- Added the icon before title block on the setting panel.
- Fix a bug: The setting data migration processing can’t work concurrently with auto-update.
- Fix a bug: A error message don’t be translated.
1.5.5
- Added new setting option to change text label for collapsed code block.
- Most of setting parameters are stored as associative arrays in SQL.
- Redesigned setting panel.
- Changed the method of displaying the notice message for admin.
- Only when âcomments_open()â is true, âComment Highlight Buttonâ processing is run.
- After âComment Highlight Buttonâ is enabled, force on âcommentsâ option.
- Moved javascript files to âjsâ directory.(except TinyMCE plugin and SyntaxHighlighter library)
- Moved css files to âjsâ css.(except SyntaxHighlighter library)
- Bundled sample plugin support i18n and new method of displaying the notice for admin.
- Changed line feed codes to LF.(except SyntaxHighlighter library, added brush and text files) The line feed codes were CR/LF in the many of files.
- Checking if the current request carries a valid nonce when settings are saved or reset.
- Changed default text which is show before comment form. Thanks Judah.
- Changed the processing when plugin is updated.
- Fix a bug: Unnecessary
<form>
tags in source code of setting panel. - Fix a bug: Incorrect target versions of brush files are shown in the setting panel.
1.5
- Added the widget to show highlighted code.
- Added âComment Highlight buttonâ to post a comment with their sourcecodes and highlight them easily.
- Bundled sample plugin can add new languages(DOS batch file, Objective-C). Thanks Andreas Breitschopp who created âshBrushDosBatch-V2.jsâ and âshBrushDosBatch-V3.jsâ for WP SyntaxHighlighter.
- Allowed to enter single quotes into âTitleâ.
- Changed the way to show target versions of brush files in the setting panel.
- Changed the way to show notice for admin.
- Using dirname() and plugin_basename() instead of hardcoded directory name.
- Changed directory name stored translation files.
1.4.4
- Added new theme âNoneâ that allows to apply no stylesheet.
- TinyMCE buttons supported new fullscreen mode in WordPress 3.2 or higher.
- Fix a bug: âInsertâ function of âpreâ button does not work in the fullscreen mode.
- Fix âNotice: Undefined variable: page_highlightâ and âNotice: Undefined variable: comment_highlightâ.
- Bundled sample plugin can add new languages(Clojure, LISP, MEL Script, PowerCLI, Vim Script).
1.4.3.1
- Fix a bug: The misdescribed
<script>
tag. - Modified Japanese translation.
1.4.3
- Added new theme âRandomâ to apply different theme on each page.
- Added break statements to foreach loops for performance improvement.
- Changed the conditional branching for performance improvement.
- Changed âthe_contentâ hook priority to prevent conflict.
- Added âothersâ checkbox into âHiglight your code inâ option to allow highlighting in particular pages.
- Added new hook to add css files for external plugin.
- Added new method to add brush files for external plugin.
- Bundled new sample plugin.
1.4
- âAutoloading JavaScriptsâ function will be applicable to not only posts and pages but also home, archives, search results and comments.
- This plugin allows visitors to post comments with their code.
- Changed the conditional branching for adding stylesheet.
- Fix a bug: The addtional stylesheet isn’t added in Categories, Archives and Search result.
- Fix a bug: A message can’t be translate into Japanese.
1.3.9
- Added âHiglight your code inâ option that allows you highlight your code in Categories, Archives and Search result.
- Added âTitleâ and âLine Number Paddingâ options.
- Users allows âDefault languages settingsâ to be reflected in buttons and âautoloaderâ.
- Changed processing code for creating buttons.
- Changed the method to add javascripts and css into setting panel.
- Fix a bug: The misdescribed argument of wp_enqueue_style() function.
- Fix a bug: WP SyntaxHighlighter don’t work with WP to Twitter etc.
1.3.8.2
- Fix a bug: The misdescribed
<script>
tag caused HTML validation errors.
1.3.8.1
- The value of $wp_sh_ver was updated.
1.3.8
- Fix a bug: When selectd ver.2.1.382, âcopy to clipboardâ icon is disappeared from tool bar.
1.3.7
- Added the option to choose pop-up windows size.
- Changed the method to get plugin directory url.
1.3.6
- Fix âNotice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.â when âWP_DEBUGâ is turned on.
- Changed processing javascripts for admin panel.
1.3.5
- Can define your own stylesheet for the code block.
- Can choose TinyMCE toolbar row which buttons will be placed in.
- Add legacy
<pre>
and<textarea>
tags and attribtes to TinyMCE extended_valid_elements. - Added âSystem Infoâ in setting panel.
- Changed processing code for creating buttons.
1.3
- In ver. 2.0 or âLegacy modeâ, loaded languages become pre-selectable through setting panel.
- âReset All Settingâ button Added to setting panel.
<script>
and<textarea>
tag methods are supported.- Fix a bug: In âLegacy modeâ, the source code with old style tag can’t be highlighted correctly.
1.2.3
- Added more language for ver. 2.1.382 by defaut, or this version will load all bundled languages for ver. 2.1.382 by defaut.(added languages are: Actionscript3, Bash shell, ColdFusion, Diff, Erlang, Groovy, JavaFX, Perl, Plain Text, PowerShell,Scala)
- Added âAction hooksâ and associative array for developers.
- Comments before approved can be highlighted.
- Fix a bug: When chosen âMDUltraâ theme in ver. 2.1, âYour Current Themeâ in setting panel can’t be updated correctly.
1.2.2
- To prevent conflict with other TinyMCE button, the priority of a function hooked has been changed.
- Removed an unnecessary file from the file set.
1.2.1
- Fix a bug: âCODEâ button does not work in fullscreen mode.
1.2
- Added âCODEâ button which allows to paste sourcecode into post or page, keeping indent by tab.
- Enable to change language and options of previously-markuped code.
- Button icons has been changed.
- layout of buttons on TinyMCE popup window has been changed.
1.1.1
- Fix a bug: Sometimes Code do not be highlighted in home.
1.1
- Adding the button to type
<pre>
tag in Visual editor. - You can preview your current theme in setting panel.
- Fix a bug: Setting values in databese can’t be removed when uninstall.
1.0.1
- Fix a warning in setting panel.
1.0
- This is the initial release.