1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not a Bug BBCode inside CODE

Discussion in 'Resolved Bug Reports' started by James, Aug 6, 2010.

  1. James

    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]
     
  2. Vincent

    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 :)
     
  3. James

    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.
     
  4. Dismounted

    Dismounted Well-Known Member

    Looks like its fixed now.
     
  5. Floris

    Floris Guest

    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

    Code:
    something
    :)
     
  6. Dismounted

    Dismounted Well-Known Member

  7. Floris

    Floris Guest

    They've read the post that strikethrough isn't on it yet too, so maybe a future build will have the updates on it. the =rich was already mentioned somewhere though that it is sorta undocumented (well, at least for now I guess hehe).
     
  8. Cezz

    Cezz Well-Known Member

    Nice... I like
     
  9. James

    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
     
  10. Brandon_R

    Brandon_R Guest

    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]
     
  11. James

    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]
     
  12. Brandon_R

    Brandon_R Guest

    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]
     
  13. Brandon_R

    Brandon_R Guest

    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]
     
  14. Vincent

    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?
     
  15. Jeremy P

    Jeremy P Well-Known Member

    I think it's the editor pasting text as formatted within a [code] tag..
     
  16. Brogan

    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.
     
    Vincent likes this.
  17. Kier

    Kier XenForo Developer Staff Member

    Or select the code and click the top-left button (Remove Formatting) after you've pasted it.
     
    Vincent and James like this.
  18. Brogan

    Brogan XenForo Moderator Staff Member

    I always forget about that[​IMG]
     
  19. Code:
    [SIZE=10pt]asdaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    [/SIZE]
    hmm
    Code:
    hi
     

Share This Page