Tut site - GeSHi
Posted: Sun Oct 23, 2011 8:22 pm
Hey, I'm using GeSHi for syntax highlighting my code. I know how to take code, and highlight it using GeSHi's functions, but what I'm trying to accomplish is taking a piece of code, and highlighting it, while also having other code snippets on one page using the same highlight.
Here is how I want it:
The code and the language are coming from a database. The reason I want this, is because I'm also allowing user created tuts to be submitted, and their code should be highlighted as well.
If anyone can help, please do.
Here is how I want it:
Code: Select all
$array = array(
0 => array(
'code' => 'code_snippet',
'lang' => 'language'
)
);
If anyone can help, please do.