BBCode Interferes With Code

Reply

Join Date: Mar 2006
Posts: 50
Reputation: AstroNox is an unknown quantity at this point 
Solved Threads: 2
AstroNox AstroNox is offline Offline
Junior Poster in Training

BBCode Interferes With Code

 
0
  #1
Mar 27th, 2006
Dear moderators,

I would like to report a potential bug as in this post:
http://www.daniweb.com/techtalkforums/post200331-1.html

I used if (!(fin >> pianoPlayer[i])) in line 6 and the [i] was interpreted as the italic BBCode. This would not have happened if I did not use a close italic BBCode in this line further below (the italicised part is underlined here):
Originally Posted by AstroNox
Call which method with parameters by reference or value? The ReadScores method above uses ifstream& fin as its parameter; the & tells the compiler that the parameter is passed in by reference and not by value.
Is it possible to prevent such a thing from happening somehow? Removing the parsing of BBCode within [CODE] and [INLINECODE] tags alone will not do because I do use [B] within them.

I would also like to suggest providing an alternate BBCode to [INLINECODE], like [C] or something. That's because [INLINECODE] is meant to be frequently used (I do use them frequently) and manually typing them is a little of a chore. Perhaps implementing keyboard shortcuts would be a good choice.

Also, is there a way to prevent the edit box from scrolling all the way to the top whenever I click on one of the formatting buttons? It gets in the way whenever I try to format a long reply. Thanks!

P.S. May I also ask why is there a 30 minute edit limit?
Best Regards, God Bless,
AstroNox
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,043
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 128
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: BBCode Interferes With Code

 
0
  #2
Mar 27th, 2006
This is just a built-in bug with the vBulletin software which powers DaniWeb. The problem is eliminated when you use [php] or [html] tags as opposed to [code] tags.

The full standard and WYSIWYG editors (which appear everywhere except for the quick reply box) contain a button to quickly insert inline code.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 50
Reputation: AstroNox is an unknown quantity at this point 
Solved Threads: 2
AstroNox AstroNox is offline Offline
Junior Poster in Training

Re: BBCode Interferes With Code

 
0
  #3
Mar 28th, 2006
Hi cscgal,

I understand that clicking on the button will do in the Advanced Reply mode. I always use the Advanced Reply anyway. It's just that if there's a lot of inline code it is rather "tiresome" (if you get what I mean), to click that button. In fact, the edit box scrolling to the top on a button click makes it worse. I was thinking of an easier way where one could insert these tags without touching the mouse, i.e. keyboard combination shortcuts for tags, or, shorter tag names. Just a suggestion

Anyway, I'll keep the [php] and [html] tags in mind. Thanks!
Best Regards, God Bless,
AstroNox
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the DaniWeb Community Feedback Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC