• We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      It's often useful to put code snippets inline with prose. If the snippet is very short, breaking the paragraph flow for a code block is disruptive. It looks much better to put it inline and simply render it in a monospaced font. This is especially useful when discussing command line flags or identifiers used in a code block.

      In JIRA it's possible to do this with double curly braces, for example {{someIdentifier}}. Unfortunately no such facility exists for Answers. I think a button should be added to the inline formatting set (with bold and italic) which applies a monospaced font.

            [CONFSERVER-51767] Add support for formatting of inline code snippets

            Joe Clark added a comment -

            Hi,

            Thanks for participating in the Atlassian Answers community and reporting bugs and improvements for us to work on.

            We recently migrated Answers to an entirely new system powered by Confluence Questions. This means that many of the bugs and feature requests that have been suggested over the last few years don't make much sense any more.

            As such, I am bulk-closing most open issues in this project. If you think your issue is still relevant for the new Answers, please consider re-creating your issue in the "Confluence Questions" project - https://jira.atlassian.com/browse/CQ.

            Joe Clark added a comment - Hi, Thanks for participating in the Atlassian Answers community and reporting bugs and improvements for us to work on. We recently migrated Answers to an entirely new system powered by Confluence Questions. This means that many of the bugs and feature requests that have been suggested over the last few years don't make much sense any more. As such, I am bulk-closing most open issues in this project. If you think your issue is still relevant for the new Answers, please consider re-creating your issue in the "Confluence Questions" project - https://jira.atlassian.com/browse/CQ .

            Thanks Sam. We've got a code insertion already, so I'm a bit worried about overloading that. I'll have a look at Font Family. The only reason I'd hesitate is that I don't want the myspace/geocities look! I'll pass it around our team and see what we can do.

            Jeremy Largman added a comment - Thanks Sam. We've got a code insertion already, so I'm a bit worried about overloading that. I'll have a look at Font Family. The only reason I'd hesitate is that I don't want the myspace/geocities look! I'll pass it around our team and see what we can do.

            Sam Hanes added a comment -

            The closest thing built in to TinyMCE is choosing "monospaced" from the Font Family menu. It looks like there's a plugin available on SourceForge that adds a button which wraps the selection in a <code> element, which would be a cleaner solution. If you used that you'd need to allow the <code> tag in your HTML validation as well. Either method would achieve the purpose.

            Sam Hanes added a comment - The closest thing built in to TinyMCE is choosing "monospaced" from the Font Family menu. It looks like there's a plugin available on SourceForge that adds a button which wraps the selection in a <code> element , which would be a cleaner solution. If you used that you'd need to allow the <code> tag in your HTML validation as well. Either method would achieve the purpose.

            Hi Sam, thanks for the request. We've got a couple options here, but I'm not finding exactly what you're after. If you're keen to spend a minute, I'd love your help in figuring out what you'd like to see: check out http://www.tinymce.com/tryit/full.php.

            • One choice from there is 'preformatted' from the format menu (the one that says heading 1), but that one's more like blockquote functionality than what you're describing.
            • Another option is to add the fonts menu, and you could just choose courier for any font.
            • A third option is to customize TinyMCE to work as you've specified, which, to be honest, we'd be less likely to do.

            If you can find an option (this or anything else you think would be good!) in TinyMCE, I'll add it straight away. If TinyMCE falls a bit short and needs customization, it's a bit bigger deal. Let me know if anything jumps out as an easy addition, I'll be happy to add it.

            Jeremy Largman added a comment - Hi Sam, thanks for the request. We've got a couple options here, but I'm not finding exactly what you're after. If you're keen to spend a minute, I'd love your help in figuring out what you'd like to see: check out http://www.tinymce.com/tryit/full.php . One choice from there is 'preformatted' from the format menu (the one that says heading 1), but that one's more like blockquote functionality than what you're describing. Another option is to add the fonts menu, and you could just choose courier for any font. A third option is to customize TinyMCE to work as you've specified, which, to be honest, we'd be less likely to do. If you can find an option (this or anything else you think would be good!) in TinyMCE, I'll add it straight away. If TinyMCE falls a bit short and needs customization, it's a bit bigger deal. Let me know if anything jumps out as an easy addition, I'll be happy to add it.

              Unassigned Unassigned
              decc766b7944 Sam Hanes
              Votes:
              6 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: