{"id":11293,"date":"2010-11-22T15:37:07","date_gmt":"2010-11-22T15:37:07","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-geshi-highlight\/"},"modified":"2023-04-30T08:39:00","modified_gmt":"2023-04-30T08:39:00","slug":"wp-geshi-highlight","status":"closed","type":"plugin","link":"https:\/\/yor.wordpress.org\/plugins\/wp-geshi-highlight\/","author":3309830,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.4.3","stable_tag":"1.4.3","tested":"6.2.9","requires":"3.0","requires_php":"5.6","requires_plugins":null,"header_name":"WP-GeSHi-Highlight","header_author":"Dr. Jan-Philip Gehrcke","header_description":"","assets_banners_color":"8a7079","last_updated":"2023-04-30 08:39:00","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/gehrcke.de\/wp-geshi-highlight","header_author_uri":"https:\/\/gehrcke.de","rating":4.1,"author_block_rating":0,"active_installs":400,"downloads":31352,"num_ratings":9,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.1-beta":{"tag":"1.0.1-beta","author":"jgehrcke","date":"2010-12-18 22:32:38"},"1.0.2":{"tag":"1.0.2","author":"jgehrcke","date":"2011-01-04 12:51:38"},"1.0.3":{"tag":"1.0.3","author":"jgehrcke","date":"2011-01-06 11:32:50"},"1.0.4":{"tag":"1.0.4","author":"jgehrcke","date":"2011-01-12 20:21:34"},"1.0.5":{"tag":"1.0.5","author":"jgehrcke","date":"2011-02-27 14:53:33"},"1.0.6":{"tag":"1.0.6","author":"jgehrcke","date":"2012-05-12 17:15:14"},"1.0.7":{"tag":"1.0.7","author":"jgehrcke","date":"2012-05-13 17:28:40"},"1.0.8":{"tag":"1.0.8","author":"jgehrcke","date":"2013-01-16 22:26:36"},"1.0.8.1":{"tag":"1.0.8.1","author":"jgehrcke","date":"2013-01-16 22:46:56"},"1.1.0":{"tag":"1.1.0","author":"jgehrcke","date":"2013-06-22 01:21:58"},"1.1.0.1":{"tag":"1.1.0.1","author":"jgehrcke","date":"2013-06-22 01:30:00"},"1.1.0.2":{"tag":"1.1.0.2","author":"jgehrcke","date":"2013-06-22 01:32:52"},"1.2.0":{"tag":"1.2.0","author":"jgehrcke","date":"2014-04-16 19:38:58"},"1.2.1":{"tag":"1.2.1","author":"jgehrcke","date":"2014-05-21 12:53:06"},"1.2.2":{"tag":"1.2.2","author":"jgehrcke","date":"2015-01-12 14:03:05"},"1.2.3":{"tag":"1.2.3","author":"jgehrcke","date":"2015-04-20 19:44:43"},"1.2.4":{"tag":"1.2.4","author":"jgehrcke","date":"2015-06-16 22:17:38"},"1.3.0":{"tag":"1.3.0","author":"jgehrcke","date":"2015-06-17 23:32:42"},"1.3.1":{"tag":"1.3.1","author":"jgehrcke","date":"2017-10-03 16:06:38"},"1.3.2":{"tag":"1.3.2","author":"jgehrcke","date":"2018-04-23 13:03:39"},"1.3.3":{"tag":"1.3.3","author":"jgehrcke","date":"2018-05-02 21:42:02"},"1.3.4":{"tag":"1.3.4","author":"jgehrcke","date":"2018-12-25 23:51:00"},"1.4.0":{"tag":"1.4.0","author":"jgehrcke","date":"2019-06-11 15:42:58"},"1.4.1":{"tag":"1.4.1","author":"jgehrcke","date":"2019-06-11 19:33:42"},"1.4.2":{"tag":"1.4.2","author":"jgehrcke","date":"2019-11-30 15:07:04"},"1.4.3":{"tag":"1.4.3","author":"jgehrcke","date":"2023-04-30 08:39:00"}},"upgrade_notice":[],"ratings":{"1":2,"2":0,"3":0,"4":0,"5":7},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":2906273,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":2906273,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":2906266,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":2906266,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1-beta","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.8.1","1.1.0","1.1.0.1","1.1.0.2","1.2.0","1.2.1","1.2.2","1.2.3","1.2.4","1.3.0","1.3.1","1.3.2","1.3.3","1.3.4","1.4.0","1.4.1","1.4.2","1.4.3"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1214,12155,3986,5284,2207],"plugin_category":[52],"plugin_contributors":[83247],"plugin_business_model":[],"class_list":["post-11293","plugin","type-plugin","status-closed","hentry","plugin_tags-code","plugin_tags-geshi","plugin_tags-highlight","plugin_tags-highlighting","plugin_tags-syntax","plugin_category-performance","plugin_contributors-jgehrcke","plugin_committers-jgehrcke"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-geshi-highlight_8a7079.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p><strong>\u2022 <a href=\"https:\/\/gehrcke.de\/wp-geshi-highlight-demo\/\">Live demo<\/a><\/strong><\/p>\n\n<p><strong>\u2022 Highlights:<\/strong><\/p>\n\n<ul>\n<li>Supports <a href=\"https:\/\/github.com\/GeSHi\/geshi-1.0\/tree\/v1.0.9.1\/src\/geshi\">259 languages<\/a>.<\/li>\n<li>Server-side. Saves bandwidth, latency, and battery compared to client-side rendering.<\/li>\n<li>Near-zero load on the backend. With a caching solution this does not affect your page load time at all.<\/li>\n<li>Line numbering. If you want to (no vertical displacements between code line and line number).<\/li>\n<li>Default style was tested with more than 20 themes, including Twenty Ten to Fifteen, and tweaked based on a bunch of user feedback.<\/li>\n<li>If you'd like to tweak the style: just provide your own CSS file. Styles are highly &amp; easily configurable.<\/li>\n<li>Per-block styles: each code block on a single page can be styled on its own (if that is something you would liked to do).<\/li>\n<li>Clean, small and valid HTML output.<\/li>\n<li>Well-documented source code using modern WordPress API calls.<\/li>\n<li>I have maintained this plugin for several years and I plan to continue to provide support.<\/li>\n<li>Based on <a href=\"http:\/\/qbnz.com\/highlighter\/\">GeSHi<\/a>, a reliable and well-established PHP highlighting engine, used by popular community forum applications such as phpBB or wiki applications such as Dokuwiki or MediaWiki.<\/li>\n<\/ul>\n\n<p>WP-GeSHi-Highlight works as a drop-in replacement for <a href=\"http:\/\/wordpress.org\/extend\/plugins\/wp-syntax\/\">WP-Syntax<\/a>, which does not seem to be maintained anymore (as of 2015). Make the switch, it should just work (let me know how it went)!<\/p>\n\n<p><strong>\u2022 Usage:<\/strong><\/p>\n\n<p>WordPress 5 users: for now I have tested this plugin only with the <a href=\"https:\/\/wordpress.org\/plugins\/classic-editor\/\">Classical Editor<\/a>. Gutenberg is not yet supported (it may work though, let me know).<\/p>\n\n<p>Recommendation: <em>use the \"Text\" (raw) editor<\/em>. Do not use the \"Visual\" editor. Switching between both may corrupt the contents of your code blocks.<\/p>\n\n<p>In the text editor insert code blocks as <code>pre<\/code> blocks, and use the <code>lang<\/code> argument to define the language of the code snippet:<\/p>\n\n<pre><code>&lt;pre lang=\"language\"&gt;\n    CODE\n&lt;\/pre&gt;\n<\/code><\/pre>\n\n<p>A short example for the <code>bash<\/code> language:<\/p>\n\n<pre><code>&lt;pre lang=\"bash\"&gt;\n    $ dd if=\/dev\/zero of=image.ext3 bs=1M count=10000 oflag=append conv=notrunc\n&lt;\/pre&gt;\n<\/code><\/pre>\n\n<p>Publish\/preview, and have a look at the result!<\/p>\n\n<p>Also check out the reference documentation for all available options. You can find it on the <a href=\"https:\/\/gehrcke.de\/wp-geshi-highlight\">plugin's website<\/a>. Note that more usage examples can be found on the <a href=\"https:\/\/gehrcke.de\/wp-geshi-highlight-demo\/\">demo website<\/a>.<\/p>\n\n<p><strong>\u2022 Issues:<\/strong><\/p>\n\n<p>A bunch of websites have used this plugin for years, and it seems to serve its purpose well. If you find an issue please let me know: drop a <a href=\"mailto:&#x6a;g&#101;&#x68;r&#099;&#x6b;&#101;&#064;&#x67;&#111;&#111;&#x67;&#108;&#101;&#x6d;&#097;&#105;&#x6c;&#046;&#099;&#x6f;&#109;\">mail<\/a> or leave a <a href=\"http:\/\/gehrcke.de\/wp-geshi-highlight\">comment<\/a>.<\/p>\n\n<p><strong>\u2022 Theme compatibility of the default style sheet:<\/strong><\/p>\n\n<p>The default style sheet was tested with recent versions of all official themes (Twenty Ten to Twenty Fifteen), and with a large range of non-official themes such as Vantage, Customizr, ColorWay, Zerif Lite, Responsive, Storefront, Virtue, evolve, Make, Sparkling, Spacious, Enigma, Sydney, Point, Interface, SinglePage.<\/p>\n\n<p>Certain themes might define styles with a high specificity that negatively affect the visual code block appearance. It is difficult to impossible to anticipate all these cases in advance, so I expect this to happen in rare cases (the past has proven that these things happen). So, I need you to look out for these situations, and please report them!<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>wp-geshi-highlight<\/code> directory to the <code>\/wp-content\/plugins<\/code> directory.<\/li>\n<li>Activate the plugin through the plugins menu in WordPress.<\/li>\n<li>Use it.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<p>Please have a look at the <a href=\"https:\/\/gehrcke.de\/wp-geshi-highlight\/#faq\">plugin's website<\/a>.<\/p>\n\n<!--section=changelog-->\n<h4>1.4.3 (2023-04-30)<\/h4>\n\n<ul>\n<li>Update GeSHi to commit 7884d2 (Feb 19, 2023).<\/li>\n<li>Fix for Golang undefined indices.<\/li>\n<li>Fix for highlighted lines.<\/li>\n<\/ul>\n\n<h4>1.4.2 (2019-11-30)<\/h4>\n\n<ul>\n<li>Update GeSHi to release 1.0.9.1.<\/li>\n<li>New language support for Roff, sshconfig, Wolfram.<\/li>\n<li>Improved language support for to bash, Haskell, ini, Matlab, rsplus, scilab.<\/li>\n<\/ul>\n\n<h4>1.4.1 (2019-06-12)<\/h4>\n\n<ul>\n<li>Enhance compatibility with the Kotha theme (thanks to Zsolt Herczeg).<\/li>\n<\/ul>\n\n<h4>1.4.0 (2019-06-12)<\/h4>\n\n<ul>\n<li>Instruct TinyMCE to leave the pre tag alone regardless of its attributes (this enhances compatibility with the Classic Editor).<\/li>\n<li>Consolidate style of line numbers (thanks to Wolfgang Maennel for reporting).<\/li>\n<li>Include 20 language files erroneously missed in previous releases (thanks to Berry Plasman for reporting).<\/li>\n<\/ul>\n\n<h4>1.3.4 (2018-12-26)<\/h4>\n\n<ul>\n<li>Update GeSHi to the current development version of the 1.0.9.1 release. This improves support for the SQL and MySQL languages and enhances PHP 7 compatibility.<\/li>\n<\/ul>\n\n<h4>1.3.3 (2018-05-02)<\/h4>\n\n<ul>\n<li>Address count()-related warnings on PHP 7 (thanks to dmorlock for reporting).<\/li>\n<\/ul>\n\n<h4>1.3.2 (2018-04-23)<\/h4>\n\n<ul>\n<li>Address 'A non-numeric value encountered' warning on PHP 7' (thanks to John and Sven for reporting).<\/li>\n<li>Fix a bug when using custom CSS files (thanks to Dan Bader for reporting).<\/li>\n<\/ul>\n\n<h4>1.3.1 (2017-10-03)<\/h4>\n\n<ul>\n<li>Update GeSHi to 1.0.8.13. This is a major language support update. With that, WP-GeSHI-Highlight now newly supports or has improved support for Swift, Julia, biblatex, Kotlin, Lua, Ceylon, T-SQL, Haskell, AutoIt, Windows batch, SASS, LLVM IR, and others.<\/li>\n<\/ul>\n\n<h4>1.3.0 (2015-06-18)<\/h4>\n\n<ul>\n<li>Enhance compatibility of the default stylesheet with a large range of themes by increasing the specificity of certain CSS selectors and by adding more style directives. This ensures a better out-of-the-box experience. Thanks to Pascal Krause for reporting an incompatilibity with Twenty Ten.<\/li>\n<\/ul>\n\n<h4>1.2.4 (2015-06-17)<\/h4>\n\n<ul>\n<li>Increase compatibility with CDNs: fix double slash appearing in CSS file URL.<\/li>\n<li>Remove redundant call to <code>wp_register_style()<\/code>.<\/li>\n<li>Change style sheet ID prefix, add newline characters to GeSHi CSS code output.<\/li>\n<li>Improve code documentation and readability.<\/li>\n<\/ul>\n\n<h4>1.2.3 (2015-01-12)<\/h4>\n\n<ul>\n<li>Update GeSHi to 1.0.8.12 (language file updates).<\/li>\n<\/ul>\n\n<h4>1.2.2 (2014-05-26)<\/h4>\n\n<ul>\n<li>Improve default CSS (add box-shadow:none to pre block, override external setting).<\/li>\n<\/ul>\n\n<h4>1.2.1 (2014-05-21)<\/h4>\n\n<ul>\n<li>Use plugin_dir_path\/url() instead of obsolete WP_PLUGIN_DIR\/URL constants (improve compatibility with HTTPS-driven websites).<\/li>\n<li>Remove obsolete screenshot from release.<\/li>\n<li>Minor code cleanup.<\/li>\n<\/ul>\n\n<h4>1.2.0 (2014-04-16)<\/h4>\n\n<ul>\n<li>Update GeSHi to git state of 2014-04-16 (tons of language updates).<\/li>\n<li>Largely improve default style, for compatibility with modern browsers.<\/li>\n<\/ul>\n\n<h4>1.1.0 (2013-06-22)<\/h4>\n\n<ul>\n<li>Adjust default style for compatibility with Twentythirteen theme.<\/li>\n<li>Remove GeSHi's hard-coded font-size and line-height code styles.<\/li>\n<li>Reduce box shadow and border radius in default style.<\/li>\n<li>Slightly increase top and bottom padding in default style.<\/li>\n<\/ul>\n\n<h4>1.0.8 (2013-01-17)<\/h4>\n\n<ul>\n<li>Improve default stylesheet: make use of CSS3 box shadows, several tweaks.<\/li>\n<li>If the code block style file is found in the <a href=\"http:\/\/codex.wordpress.org\/Function_Reference\/get_stylesheet_directory\">theme style directory<\/a>, it now has priority over the one in the plugin directory.<\/li>\n<li>Update GeSHi to 1.0.8.11 (numerous language file updates).<\/li>\n<li>Include GeSHi language file for nginx configuration files (taken from GeSHi SVN revision r2572, to be released with 1.0.8.12).<\/li>\n<li>Use <a href=\"http:\/\/codex.wordpress.org\/Function_Reference\/wp_enqueue_style\">wp_enqueue_style<\/a> method for style sheet inclusion.<\/li>\n<li>Deactivate GeSHi economic mode when printing style sheet.<\/li>\n<li>Do not print credits to HTML source anymore.<\/li>\n<\/ul>\n\n<h4>1.0.7 (2012-05-12)<\/h4>\n\n<ul>\n<li>Fix collision with other plugins including their own version of GeSHi (thanks to Bas for reporting).<\/li>\n<\/ul>\n\n<h4>1.0.6 (2012-05-12)<\/h4>\n\n<ul>\n<li>Fix line-spacing bug when displaying code blocks with different line numbering settings on the same page (thanks to Bas ten Berge for reporting).<\/li>\n<\/ul>\n\n<h4>1.0.5 (2011-02-27)<\/h4>\n\n<ul>\n<li>Update GeSHi to 1.0.8.10 (\"Some minor parser tweaks and fixes to existing language files. It adds 15 more languages.\").<\/li>\n<\/ul>\n\n<h4>1.0.4 (2011-01-12)<\/h4>\n\n<ul>\n<li>Optimize: now, CSS code is only printed once if the same language is used for multiple code blocks on the same page.<\/li>\n<li>Minor code changes.<\/li>\n<\/ul>\n\n<h4>1.0.3 (2011-01-06)<\/h4>\n\n<ul>\n<li>Fix: comments are not always showing up (thanks to Uli for reporting).<\/li>\n<\/ul>\n\n<h4>1.0.2 (2011-01-04)<\/h4>\n\n<ul>\n<li>Minor code changes.<\/li>\n<li>Remove beta tag.<\/li>\n<\/ul>\n\n<h4>1.0.1-beta (2010-12-18)<\/h4>\n\n<ul>\n<li>Fix: highlight in comments not always showing up.<\/li>\n<\/ul>\n\n<h4>1.0.0-beta (2010-11-22)<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Simple. Fast. 259 languages. Mobile-friendly. Rock-solid (GeSHi).","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/yor.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/11293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yor.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/yor.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/yor.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=11293"}],"author":[{"embeddable":true,"href":"https:\/\/yor.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jgehrcke"}],"wp:attachment":[{"href":"https:\/\/yor.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=11293"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/yor.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=11293"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/yor.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=11293"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/yor.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=11293"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/yor.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=11293"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/yor.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=11293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}