iG:Syntax Hiliter A WordPress plugin for syntax hiliting of Actionscript, PHP, Java, C#, CSS, HTML, Javascript, MySQL, Python, Ruby & many other languages. Version: 4.3 Author: Amit Gupta Plugin URI: http://blog.igeek.info/wp-plugins/igsyntax-hiliter/ License: GNU GPL v2 Github: https://github.com/coolamit/ig-syntax-hiliter WordPress.org plugin repo: http://plugins.svn.wordpress.org/igsyntax-hiliter/ REQUIREMENTS: WordPress 3.3 or later, PHP 5.2 or better ====================================================================== 1. INTRODUCTION 2. WHAT's NEW 3. INSTALLATION 4. UPGRADING 5. CONFIGURATION 6. USAGE 7. IMPORTANT ====================================================================== 1. INTRODUCTION ----------------------------------------------------------------------------------------- This is a WordPress plugin (for versions 3.3 and above) for syntax hiliting of your code. This is an update to iG:Syntax Hiliter v3.5 and is a complete rewrite. It supports all languages supported by GeSHi. This release has a new improved GeSHi Core (v 1.0.8.11). iG:Syntax Hiliter is ready to go as soon as you activate the plugin. You can change the settings on the plugin options page located under the OPTIONS menu in WordPress admin. This version of plugin has new tag format for hiliting the code but old format tags are also supported, so there is no need to convert them in old posts or database. But its best to use the new tag format from now onwards. One of the many new features in the plugin is the ability to highlight any line (or multiple lines) in the code block differently, to emphasize them. This along with the ability to show line numbers makes for a powerful combination. The plain text view of the code has been improved and old quirks are no more. iG:Syntax Hiliter has not been tested for WordPress versions below 3.3, so it might work or it might not work. There is no support if it has any problems running on those versions. If you are using an older version of WordPress, then you are better off using the older version of iG:Syntax Hiliter. This version is not for you. You are required to have ability to edit WordPress options to be able to install and configure iG:Syntax Hiliter. 2. WHAT's NEW ----------------------------------------------------------------------------------------- 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