Quote from: bll0 at Mar 27, 2006, 08:37 PM
But I think your plugin got a different approach than my snippet. In some way. (Well, I hope so, so that my work wasn’t completely worthless...)
Sure that your snippet is worthy!
Your snippet is the best option if you want to include an entire file.
Moreover, rich text editors don’t behave well with my plugin, because they insert some formatting tags to the code inside <pre>...</pre>. I had to disable my RTE. Thus, if you don’t need to insert many small pieces of code here and there, your snippet is the best option imo.
I have spent some time in trying to add more options to my plugin; but I’m not very familiar with PERL/PHP regular expressions (well, I know the regular expression I want to write, but I don’t know how to write it with the PERL syntax... the way that was obvious for me didn’t work). When I have some time, I will try a little more.
Cheers,
Luca