|Ratings|| ||Unique User Downloads|| ||Download Rankings|
|Not yet rated by the users||Total: 76 ||All time: 9,954 This week: 299|
This is a very simple class that can highlight words in a HTML text with a given color.
It takes a given text as parameter and finds a given word in the text.
The class replaces the word by HTML tags that show the same word in a given color, which by default will be yellow.
SimpleSyntaxHighlighter is a PHP class that can highlight syntax as well as word given by user.
How to use
//Include require class;
$match='Boat pistol bicycle grenade post-tank-traps table tanto neon rifle spook bomb sign drugs. Girl 3D-printed faded tattoo office systemic military-grade j-pop corrupted drone pen warehouse free-market camera engine hacker tanto';
$syntax='Construct denim savant rifle ablative alcohol apophenia katana. Receding assault augmented reality spook Chiba advert alcohol Shibuya decay industrial grade carbon. Singularity savant vinyl saturation point warehouse faded dissident sunglasses film assault claymore mine bridge post. Marketing shrine semiotics sentient cardboard jeans neural bomb motion BASE spook convenience store dissident towards shoes Kowloon. Tank-traps convenience store San Francisco girl render-farm j-pop otaku boy claymore mine grenade cartel. Boat pistol bicycle grenade post-tank-traps table tanto neon rifle spook bomb sign drugs. Girl 3D-printed faded tattoo office systemic military-grade j-pop corrupted drone pen warehouse free-market camera engine hacker tanto. ';
echo $simple->HighlightThis($match,$syntax, $color);
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.