M. Sokolewicz wrote:
Now, the problem with such a "solution" is the following. Imagine you
have the following keywords:
include
require
in
of
typof
now, when you replace include with include, it'll go on, and also replace all
instances of in, so you'll end up with things like include
(very ugly)
Aaron Gould wrote:
Bruno B B Magalhães wrote:
$code = 'function what() { do oddname; %oddsyntax }';
function highlight_code($code)
{
$oddsyntax = array('oddsyntax','oddsyntax2','oddsyntax3');
for($i = 0; $i <= count($oddsyntax)-1; $i++)
{
$highlighted_code = eregi_replace($o
Bruno B B Magalhães wrote:
$code = 'function what() { do oddname; %oddsyntax }';
function highlight_code($code)
{
$oddsyntax = array('oddsyntax','oddsyntax2','oddsyntax3');
for($i = 0; $i <= count($oddsyntax)-1; $i++)
{
$highlighted_code = eregi_replace($oddsyntax[$i],''.$o
Aaron,
why don't you use a very simle sintax like this one:
$code = 'function what() { do oddname; %oddsyntax }';
function highlight_code($code)
{
$oddsyntax = array('oddsyntax','oddsyntax2','oddsyntax3');
for($i = 0; $i <= count($oddsyntax)-1; $i++)
{
$highlighted_code = eregi_replace($odds
Could any of you privide some leads in regard to highlighting syntax of
an odd language? I have a large amount of snippits of legacy code from
our company's primary application. The code used is "BBx" (a variant of
Basic).
I'm attempting to show this code on a web page, but with highlighting o
5 matches
Mail list logo