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

Add highlighted text to [code] bbcode

Discussion in 'XenForo Suggestions' started by brucey, Jan 23, 2014.

  1. brucey

    brucey Member

    Not a big change or request, just a small modification.

    When I quote someone or copy & paste some code into a reply, I highlight the text and then click the code button, assuming that would wrap the highlighted text in the code tags. But the new dialog is blank and you have to cancel it, go back and cut the text you want and paste it into the dialog.

    My request would be that if you highlight text and then click the code button, that text is automatically added into the dialog so you can quickly click insert.

    I think this would be a bit more consistent with how the Quote and spoiler bbcodes work (as in it wraps around the highlighted text)
    Infopro, adwade, Connor Smith and 5 others like this.
  2. jflory7

    jflory7 Active Member

    I was just coming on to make the exact same suggestion. I can't tell you how many times I've done this expecting it to automatically wrap the highlighted text, only to find that I have to manually cut and paste it in. Which obviously isn't a big deal, but it's just nice when it's all automatic like the QUOTE and SPOILER tags.

    I'd love to see this implemented!
    adwade, brucey and Adam Howard like this.
  3. jflory7

    jflory7 Active Member

    I've been thinking about this for a while now, and how much it seems out of place compared to the other tagsā€¦ it wouldn't be considered a bug, would it?
  4. Jeremy

    Jeremy Well-Known Member

    No, this isn't considered a bug.

Share This Page