> Goodbye Syntax Highlighter wordpress plugin resources analysis

Goodbye Syntax Highlighter wordpress plugin resources analysis

Download This Plugin
Download Elegant Themes
Name Goodbye Syntax Highlighter
Version 0.1.2
Author Damien White (Visoft, Inc.)
Rating 100
Last updated 2013-02-11 05:05:00
Downloads
2219
Download Plugins Speed Test plugin for Wordpress

Home page

Delta: 0%

Post page

Delta: 0%
Goodbye Syntax Highlighter plugin has no negative impact on PageSpeed score.

Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%

Goodbye Syntax Highlighter plugin added 16 bytes of resources to the Home page and 41 bytes of resources to the sample Post page.

Goodbye Syntax Highlighter plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.

Great! Goodbye Syntax Highlighter plugin ads no tables to your Wordpress blog database.

For years I've used Alex Gorbatchev's SyntaxHighlighter. It has served me well over the years. When I moved to WordPress I tried various plugins based on the library, such SyntaxHighlighter Evolved.

I've decided to start blogging using Markdown. Making this move I needed to find a way to highlight various bits of source code in an easy way. There are many nice libraries that make this a snap, such as google-code-prettify or highlight.js. In the end I decided to go with highlight.js, for the simple reason that it is automatic, working flawlessly with Markdown's code syntax output.

Great, but my existing source code examples use SyntaxHighlighter's style for code blocks (using <pre class="brush: ruby;" />, for example). I could have converted things in a few ways:

  • Change the database
  • Write a JS script to convert the <pre /> structure to <pre><code /></pre>
  • Write a JS script to call highlight.js' highlightBlock method
  • Write a WP plugin and reformat things easily Ding Ding Ding

So there you have it. This WordPress plugin will go through and process your SyntaxHighlighter style blocks into ones that highlight.js works with out-of-the-box. It will also add the language that you have specified with the brush class and add it as a class on the <code /> element (following the HTML5 recommendation). Nothing is changed in the DB, so if you decide to go back to SyntaxHighlighter, you can without any issues.

GeSHi

This plugin now supports conversion of GeSHi style code blocks! Now you can move from plugins such as WP-Syntax and WP-GeSHi-Highlight to highlight.js.

GeSHi uses the syntax that is close to SyntaxHighlighter, except instead of putting the language in the class attribute, it uses the lang attribute. Similar to the SyntaxHighligher conversion, it will go through and process your GeSHi style blocks into ones that highlight.js works with out-of-the-box. It will also add the language that you have specified with the lang attribute and add it as a class on the <code /> element.

Resources added by plugin to Home page/Post page in kB
Total size of resources for Home page/Post page in kB
Random Theme Tests
Isquar screenshot

Isquar

by: sandip02

9879
100%
Themescapes Raider screenshot

Themescapes Raider

by: Themescapes

6635
0%