Well I am finally getting around to zipping this up for everyone to test out. It is getting there but I just haven’t had time to finish it all up. I still have one proble to correct which is highlighting things like “is” inside of “list”. Once I get that worked out it will be much better.
This is a beta version so as with all beta’s please provide feedback.
All highlighting is done through the use of stylesheets and a naming convention of your choice. For instance, in my ignite_cpp.php file, I have that the class for strings will be called cpp_strings. Then, in my stylesheet I have
.cpp_strings { color: green; }
which will highlight all strings green. This is to prevent you from having to go into the php files to change something so simple.
If you have any questions please let me know and sorry about the small help file but time always gets the best of us.
Jason, I have installed the extension fine although I have a problem. Maybe I missed something.
In my entry I have
[ code lang="php" line_start="2"]
<?php
echo “test”;
?>
[ /code]
when rendered I receive
Notice: Undefined variable: code in /extensions/ext.ignite.php on line 155
and my rendered code has the background image aswell as the line numbers but no highlighting. My source looks like so with gobbled code
<div class='php' id='code'><span class='number'>2</span> 38897477e41c4be3c6
<span class='number'>3</span> 1869477e41c4bf3bc “test”;
<span class='number'>4</span> 22805477e41c4bebc4
</div>
Any help would be great thanks
I installed on a clean version of EE aswell and the same problem I’m afraid. The garbage is different everytime I refresh the page. The new version you supplied does not seem to help.
Other details ExpressionEngine 1.6.1 Build: 20071204
Can you post an example of how you add your code block to an entry? Maybe I am wrong there. I only put it together from looking at your extension file
You have it right. I am running 1.6.0 so let me upgrade and see what is going on. It could just be that I need to tweak something for the latest version.
That string of characters is the unique id for that part of the highlighting. It is stored in an array and then transformed back to the highlighted code. But for some reason your is not doing that. That is why it is different each time you refresh thepage.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.