ok so i was building a syntax highlighter for my site/project that would mod the post/data before it hit the database so when a post was made only the correct parts of that post was highlighted within a codebox.
i came into an issue with the /** commented out text */ section of this as where it would comment the post out. but if a certain keyword from the php name array was in the commented out text it would then change to its respected color.
now ive had many suggestions to fixing this but all have failed when ive attempted it.
so im gonna let this out so anyone that wants to attempt to fix it or try and solve it can.
i should also add i have added a line of data inside the file for testing purposes to see the outcome and display the Demo of problem.
i use the line of text for the testing/build of the script.
Demo of fill working AND problem
File:
i came into an issue with the /** commented out text */ section of this as where it would comment the post out. but if a certain keyword from the php name array was in the commented out text it would then change to its respected color.
now ive had many suggestions to fixing this but all have failed when ive attempted it.
so im gonna let this out so anyone that wants to attempt to fix it or try and solve it can.
i should also add i have added a line of data inside the file for testing purposes to see the outcome and display the Demo of problem.
i use the line of text for the testing/build of the script.
Demo of fill working AND problem
File:
Comment