Plugin / iG:Syntax Hiliter

Amit Gupta

Changelog

Changelog

v5.0

  • Minimum required PHP version bumped to 5.3.0. The plugin simply won’t load its code on lower versions.
  • Major re-write of plugin for cleaner, modular & better performing code.
  • Assets are enqueued only if needed.
  • NEW: You can now disable plugin stylesheet which styles code boxes. People who have their own styling don’t need it anyway.
  • NEW: 2 new options allow more control on GeSHi behaviour.
  • BUGFIX: Language name cache was not re-building automatically.

v4.3

  • BUGFIX: some language file names got snipped when building language name cache

v4.2

  • BUGFIX: Shorthand tags for all languages supported now – props to Karol Kuczmarski for spotting it
  • NEW: Added C++ language file

v4.1

  • BUGFIX: Github Gist URL XSS security hole
  • BUGFIX: __dir__ doesn’t work below PHP 5.3 – props to Karol Kuczmarski for spotting it
  • NEW: Added “lang” as shorthand for “language” attribute
  • NEW: Additional GeSHi language files can be put in “geshi” directory in theme, which will prevent their deletion on plugin upgrade
  • IMPROVED: If a code block is repeated with same attributes then its parsed only once and output is reused

v4.0

  • NEW: Ability to embed Github Gist in post and comments (configurable)
  • NEW: Ability to highlight one or multiple lines in a code block to show them as different
  • NEW: New code box layout
  • NEW: Ability to escape plugin tags to prevent their processing
  • NEW: New GeSHi core (v 1.0.8.11)
  • IMPROVED: Removed quirks from plain text view & its now much more smoother
  • IMPROVED: Handling of how code is prevented from beautification. The rest of the post/comment text is not affected as wptexturize is not removed anymore.
  • IMPROVED: Simpler and faster options page in wp-admin

v3.5

  • BUGFIX: BB Tags except the ones of iG:Syntax Hiliter are allowed. The language file’s existence is checked before parsing the code. If the language file does not exist then the code is not parsed.
  • BUGFIX: ‘C’ code hiliting is now fixed.
  • BUGFIX: ‘Plain Text’ has been improved to strip the extra blank lines and spaces in Opera and FireFox.
  • The latest stable GeSHi core(v1.0.7.6).
  • NEW: Code Hiliting for Comments has been implemented. This feature can be Enabled/Disabled from the admin interface for iG:Syntax Hiliter. The tags are same for hiliting the code.
  • NEW: A cross-browser Colour Picker(tested in IE6, FireFox1.5 and Opera8.5) is now available to easily set the line colours displayed in the code box.
  • NEW: A new type of view implemented for seeing “Plain Text” code. Besides opening the plain text code in a new window, you can have it displayed in the code box itself with an option to display the hilited HTML code back again. The “Plain Text” view type can be set in the admin interface.
  • The language file for Ruby that I created a while back is now bundled with the plugin and its also a part of the default GeSHi package.

v3.1

  • BUGFIX: Critical bug, which broke the plugin when the square brackets([ & ]) were used in the posts in places other than tags, has been fixed.
  • BUGFIX: Another bug, which allowed any attribute in the tags besides the ‘num’ and also allowed any attribute value for it, affecting the processing. Now only the ‘num’ attribute is accepted and if you specify the ‘num’ attribute then its value must be a positive number otherwise your code won’t be hilited. The ‘num’ attribute is optional and you can leave it out without any problems.
  • BUGFIX: Fixed the unclosed tags in the Plugin GUI code.
  • GeSHi BUGFIX: Fixed a bug in GeSHi where the first line colour was not used when using FANCY LINE NUMBERS thus resulting in just one colour being used for the alternate lines.
  • There’s a problem in WordPress due to which the starting delimiters of ASP, PHP were not displayed correctly, as whitespace was inserted between the ‘<‘ and the rest of the delimiter. This has been patched so that its displayed correctly, but its not saved in the database, so the database still contains the delimiters as formatted by WordPress.

v3.0

  • Complete re-write of the plugin resulting in reduction of code from 750+ lines to about 400 Lines.
  • New GeSHi Core(v1.0.7) which has some bug-fixes, please see GeSHi Website for its changelog.
  • New languages added are C#, Delphi, Smarty & VB.NET.
  • ASP language file structure updated & more keywords added.
  • Drag-n-Drop usage of new languages. The plugin now supports all languages that GeSHi(v1.0.7) supports. You just need to drop the language file in the “geshi” directory & use the filename as the tag for the language(like if file is “pascal.php”, then the filename is “pascal” & the tags will be [pascal] & [/pascal]).
  • Language name which is displayed in the Code-Box can now be turned ON or OFF easily.
  • No more need to set the physical-path to the “geshi” directory if you are doing a default installation.
  • Plain-Text View of the code hilited in the code-box is now possible. This feature can be enabled/disabled easily in the Configuration Interface in WordPress Administration.
  • NO NEED TO EDIT THE PLUGIN FILE ANYMORE. You can now configure the plugin settings from a GUI located under the OPTIONS menu in your WordPress Administration(WordPress 1.5 & above only).

v2.01

  • BUGFIX: Fixed a bug by removing a
    tag from the function pFix() which lead to closing of an unnecessary

    tag making the code not xHTML valid(as per my desires).

v2.0 Final

  • Implemented the new version of GeSHi core, v1.0.2 which has some bug fixes & which uses OL(Ordered Lists) for Line Numbering and supports starting of a Line Number from any given number.
  • The ASP(Active Server Pages) language file has been updated to the new Language File structure of GeSHi as well as more keywords added & hiliting is more effective now.
  • iG:Syntax Hiliter now also supports ActionScript, C, C++, JavaScript, Perl, Python, Visual Basic & XML.
  • The whole plugin has been re-written & all the hiliting code is now in a class. You can just use the class anywhere else too for hiliting the code. But to also use the Code Tags to wrap your code & then hilite them, you will need to use all other functions. You can remove the WordPress Filter calls at the end of the plugin & use the rest of the code as you want somewhere else.
  • BUGFIX: The issue of multi-line comments not being hilited properly in v2.0 Preview has been sorted out.

v2.0 Preview

  • Implemented the new version of GeSHi core, v1.0.1 which has some bug fixes including the extra quote(“) bug that broke the xHTML validation of the code.
  • I’ve created a new language file for ASP(Active Server Pages) which has been added to this release & will also be a part of the next GeSHi release.
  • Line numbering is now done through Ordered Lists(
      ) & the code is xHTML compliant.
  • Auto-Formatting disabled for posts that contain the iG:Syntax Hiliter code tags so that your code is good for copy-paste operations.

v1.1

  • Implemented the line numbering of code.
  • The code box is now of fixed dimensions without word-wrap & with scrollbars(if required).

v1.0

  • Hilites code between the special tags, all of them differently.
  • Uses GeSHi for syntax hiliting.
  • Supports HTML, CSS, PHP, JAVA & SQL codes.

Ratings

5
1 reviews

Rating breakdown

Details Information

Version

5.0

First Released

29 Jan, 2013

Total Downloads

5,791

Wordpress Version

4.1 or higher

Tested up to:

4.3.21

Require PHP Version:

-

Tags

Contributors

Languages

The plugin hasn't been transalated in any language other than English.

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.