I recently upgraded iG:Syntax Hiliter which now includes a plain text option. That’s cool, but it seems to render the code better so that it pastes into the VBE without issue.
I had to edit the geshi vb.php file to include some keywords that are exclusive to VBA and/or Excel and I wanted to make that file available in case anybody else uses geshi to format their code.
Note that this replaces the current vb.php. I didn’t delete any keywords, so it should still work for straight vb6.0 code. I also changed the colors to match the VBE, e.g. comments in green.
I don’t know if I can modify this code and make it available, but someone will tell me if I shouldn’t have.
you can very well make this code available since the whole package(the plugin as well as GeSHi) is licensed under the GNU GPL. so as long as you honour the license, you are free to do whatever you want. however, it would’ve been better if you created a new language file for VBA. :)
No doubt. I don’t know if I have the php skills to make that work, though.
You don’t need any PHP skills, just copy over the VB language file, strip out the keywords & add only VBA keywords. send it over to me & I’ll clean it up!! :)
I ran into a little error trying to use this file. It turned that out your ‘old’ version of the file is not compatible with my newer geshi version (1.0.7.3). It took only a minor modification to make it work though. You saved me a lot of work having to modify it myself, thnx! :-) It’s doing it’s thing at my site now.
Btw, the upcoming version 1.2 of Geshi has ‘theming support’, you might like to check it out:
http://qbnz.com/highlighter/
Rembo
Hi Amit
Real nice plugin
one thing, I wish you had made the download link clear ;-)
http://www.igeek.info/download.php?file=1
Amit have you (or any one else) pulled out the VBA in to it’s own file yet, just wondering that was all, i guess i might be able to do this my-self given time.
Thanks Dick and Amit for you work.
I haven’t looked at it yet Ross. If you do it, let me know, but I won’t be able to get to until next week.
I should get some time at the weekend :-)
My VBA file is here, note this is “my take” on it:
http://methodsinexcel.blogspot.com/2006/02/vba-for-igsyntaxhiliter.html
cheers