iG:Syntax Hiliter Plugin
-
I released iG:Syntax Hiliter Plugin yesterday. Its available at http://blog.igeek.info/still-fresh/2004/08/06/igsyntax-hiliter-plugin-release/. Its for highlighting/colour coding your code snippets. The current version is v1.0 & at present it supports HTML, CSS, PHP, JAVA & SQL codes. This thread will be here for entertaining bug reports( 😮 ) and any feature requests. 🙂
-
I cannot get this to work with wordpress 1.5, any help?
This is what I get every time:
Parse error: parse error, unexpected ‘;’ in /home/.nasya/workingbath/workingbath.com/wp-content/plugins/syntax_hilite.php on line 23How is $gPath supposed to be formatted?
Ive tried:- var $gPath = /home/workingbath/workingbath.com/wp-content/;
- var $gPath = ‘/home/workingbath/workingbath.com/wp-content/’;
- var $gPath = “/home/workingbath/workingbath.com/wp-content/”;
- var $gPath = /home/workingbath/workingbath.com/wp-content/geshi/;
- var $gPath = ‘/home/workingbath/workingbath.com/wp-content/geshi/’;
- var $gPath = “/home/workingbath/workingbath.com/wp-content/geshi/”;
as well as
- var $gPath = http://www.workingbath.com/wp-content/;
- var $gPath = ‘http://www.workingbath.com/wp-content/’;
- var $gPath = “http://www.workingbath.com/wp-content/”;
- var $gPath = http://www.workingbath.com/wp-content/geshi/;
- var $gPath = ‘http://www.workingbath.com/wp-content/geshi’/’;
- var $gPath = “http://www.workingbath.com/wp-content/geshi/”;
The path.php utility is included in the package just b’coz some of you don’t understand what a Physical Path is. Please use that too get the path.
It looks like you’ve solved the problem as the plugin is working well on your website. 🙂
This is probably glaringly obvious but it seems to be getting overlooked…. how do I call this from within my post. I modified the plugin to do bash highlighting but unsure how to display a snippet of a bash script….
just enclose your snippet in the tags you created for bash code. or should I ask how did you changed the plugin? 🙂
http://december.com/html/4/element/
[html] [/html] link http://december.com/html/4/element/*html?help me ~
hi, i also have installed the plugin and it works very fine but when i go through my site by the archive or by the categories the plugin won’t work. i use wordpress 1.5 with permalinks. any idea?
Yeah, the code on archives & categories pages is not highlighted, I’ve noticed this on my WP1.5 blog too. Rest assured, this will be tackled.
v3.0 of iG:Syntax Hiliter has been released. More details at http://blog.igeek.info/still-fresh/2005/06/29/let-the-code-be-colourised/
Those using WP1.5 or above, please update!! 🙂
There is a bug when i used “[ ]� before [cpp]..[/cpp] and it won’t display the content from “[ ]� to [/cpp],count help me?I have to use the 2.0
hiwa, doing multiple posts won’t help fix the bug faster!!! Commenting on the plugin page was enough, there was no need to send 2 eMails from my website and then posting here as well. You should learn to wait, I’m not sitting all day looking up at my blog or WP-Support forums waiting for bug reports to come in & fixing them instantly!!
Everything takes time, you’ve reported the bug, I thank you for that, now please wait till I release a fix.
A critical bug-fix update has been released at http://blog.igeek.info/still-fresh/2005/07/05/worming-my-way-out/. All of those who downloaded/are using iG:Syntax Hiliter v3.0, please upgrade to v3.1 asap.
I just installed and modified your plugin a bit to make it work on the comments.
http://www.phpvietnam.net/blog/index.php/archives/2005/07/09/enable-ig-syntax-hiliter-on-comment/
Hi
the code is great but I have snippets of blogger templates in my post and the hiliter is putting a space between the < and $ which breaks the example.
see http://sarahk.pcpropertymanager.com/blog/essential-change-to-blogger-templates/163/
any solutions?
thanks
Sarah
Its been fixed, please see the update at http://blog.igeek.info/still-fresh/2005/07/05/worming-my-way-out/ for iG:Syntax Hiliter v3.1.1
i think using iG:Syntax Hiliter make the xhtml code invalid , there is a little “error” , a type must be added :
Error Line 29 column 116: required attribute “type” not specified.
…ig_syntax_hilite/syntax_hilite_js.js”></script>because the type is missing
correct one : <script type=”text/javascript” xxx.js ..
to fix it :
change the $hHead in the function called :
// function for outputting styles (syntax_hilite.php)
from :
$hHead .= ” <script language=\”javascript\” src=\””.$igsyntax_hiliter_path.”syntax_hilite_js.js\”></script>\n”;
to :
$hHead .= ” <script type=\”text/javascript\” src=\””.$igsyntax_hiliter_path.”syntax_hilite_js.js\”></script>\n”;
The topic ‘iG:Syntax Hiliter Plugin’ is closed to new replies.