Not a bug  BBCode inside CODE

James

Well-known member
Code:
[SIZE=10pt][FONT=Consolas]<script type="text/javascript">      var _gaq = _gaq || [];    _gaq.push(['_setAccount', 'UA-10855523-4']);    _gaq.push(['_trackPageview']);     (function() {    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);    })();   </script>[/FONT][/SIZE]
[SIZE=10pt][FONT=Consolas]
[/FONT][/SIZE]
[SIZE=10pt]When using CODE BBCodes, BBCode is automatically inserted inside the code tags? (see above).[/SIZE]
 

Vincent

Well-known member
Code:
[B]Is it true?[/B] Yes

[plain][b]Let's see what happens if we wrap this in plain text...[/b][/plain] Nothing...
I can reproduce it :)
 

James

Well-known member
Code:
Just another random test
EDIT: Seems to work fine here... yet when I put the above code into CODE BBCodes, it automatically added the BBCodes ([SIZE][FONT]) itself.
My two cents on this is that it's the indenting or possible conflictions inside the code itself.
 

Cezz

Well-known member
You can use [code][b]something[/b][/code] to look like this:

Code:
[b]something[/b]
And you can use [code=rich][b]something[/b][/code] to have it parse

Rich (BB code):
something
:)
Nice... I like
 

James

Well-known member
Code:
[SIZE=10pt][FONT=Consolas]<script type="text/javascript">      var _gaq = _gaq || [];    _gaq.push(['_setAccount', 'UA-10855523-4']);    _gaq.push(['_trackPageview']);     (function() {    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);    })();   </script>
[/FONT][/SIZE]

Nop it's not fixed :p
 

Brandon_R

Guest
Rich (BB code):
[SIZE=10pt]<script type="text/javascript">      var _gaq = _gaq || [];    _gaq.push(['_setAccount', 'UA-10855523-4']);    _gaq.push(['_trackPageview']);     (function() {    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);    })();   </script>[/SIZE]
[SIZE=10pt]
[/SIZE]
[SIZE=10pt][/size]
 

James

Well-known member
Code:
[/SIZE][/FONT][/SIZE][/SIZE][/FONT][/SIZE][/SIZE][/FONT][/SIZE][/SIZE][/FONT][/SIZE]
[FONT=Consolas][FONT=Consolas][FONT=Consolas][SIZE=10pt][FONT=Consolas]<script type="text/javascript">      var _gaq = _gaq || [];    _gaq.push(['_setAccount', 'UA-10855523-4']);    _gaq.push(['_trackPageview']);     (function() {    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);    })();   </script>
[/CODE]
[/FONT][/SIZE][/CODE][/FONT][/FONT][/FONT]

Still fails for me :([/CODE][/SIZE][/SIZE][/CODE][/FONT]
Now it's putting my reply in code tags ;o odd[/CODE][/SIZE][/FONT][/SIZE]
 

Brandon_R

Guest
Rich (BB code):
[/SIZE][/FONT][/SIZE][/SIZE][/FONT][/SIZE][/SIZE][/FONT][/SIZE]
[SIZE=10pt]<script type="text/javascript">      var _gaq = _gaq || [];    _gaq.push(['_setAccount', 'UA-10855523-4']);    _gaq.push(['_trackPageview']);     (function() {    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);    })();   </script>[/SIZE]
[SIZE=10pt][/SIZE][/CODE][/SIZE][/SIZE][/CODE][/FONT]

Still fails for me :([/CODE][/SIZE][/SIZE][/CODE][/FONT]
Now it's putting my reply in code tags ;o odd[/CODE][/SIZE][/FONT][/SIZE]
[/code]
[/SIZE][/FONT][/SIZE]
 

Brandon_R

Guest
Rich (BB code):
[/SIZE][/FONT][/SIZE][/SIZE][/FONT][/SIZE][/SIZE][/FONT][/SIZE]
[SIZE=10pt]<script type="text/javascript">      var _gaq = _gaq || [];    _gaq.push(['_setAccount', 'UA-10855523-4']);    _gaq.push(['_trackPageview']);     (function() {    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);    })();   </script>[/SIZE]
[SIZE=10pt][/SIZE][/CODE][/SIZE][/SIZE][/CODE][/FONT]

Still fails for me :([/CODE][/SIZE][/SIZE][/CODE][/FONT]
Now it's putting my reply in code tags ;o odd[/CODE][/SIZE][/FONT][/SIZE]
[/SIZE][/FONT][/SIZE]
[/code]
 

Vincent

Well-known member
I was just about to report this again, than I noticed there was already a topic like this.

I got a questions for the devs, because I think this is the WYSIWIG editor's fault.
Or is it xenForo?
 

Brogan

XenForo moderator
Staff member
Yes, that's exactly what it is.

The only way around it is to paste as unformatted text or use the plain text editor.
 
Top