PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Oct 23, 2017 1:04 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: syntax highlighter bug
PostPosted: Tue Jun 15, 2010 11:49 pm 
Offline
Forum Contributor
User avatar

Joined: Mon Sep 14, 2009 11:38 pm
Posts: 175
I wasn't sure how to specify javascript syntax, so I put syntax=js into the bbcode and got the following error:

[phpBB Debug] PHP Notice: in file /includes/geshi.php on line 3355: preg_replace() [function.preg-replace]: Unknown modifier '.'
[phpBB Debug] PHP Notice: in file /includes/geshi.php on line 3355: preg_replace() [function.preg-replace]: Unknown modifier '.'

The code below will be able to reproduce the error if you change syntax=javascript to syntax=js

Syntax: [ Download ] [ Hide ]
var someDivElement = document.getElementById('someDivElement');
foreach (var x in flashObject) {
if (flashObject.hasOwnProperty(x)) {
 someDivElement.innerHTML += flashObject[x];
}
}


Cheers


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group