943,721 Members | Top Members by Rank

Ad:
Mar 27th, 2006
0

BBCode Interferes With Code

Expand Post »
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):
Quote 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?
Similar Threads
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
AstroNox is offline Offline
50 posts
since Mar 2006
Mar 27th, 2006
0

Re: BBCode Interferes With Code

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.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Mar 28th, 2006
0

Re: BBCode Interferes With Code

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!
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
AstroNox is offline Offline
50 posts
since Mar 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in DaniWeb Community Feedback Forum Timeline: NEEDS A News & Announcements
Next Thread in DaniWeb Community Feedback Forum Timeline: Alignment





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC