Shortcut key for monospaced character format in Confluence

I know the {{...}} markup but it’s rather cumbersome.

Is there a shortcut key to set the selected text to monospace in Confluence or is it possible to set up one somehow?


The way I do this is pretty simple, I added a bookmark/shortcut that executes the click on the monospace button like so:


If you use Google Chrome, simply right click bookmark bar, choose “Add Page” and add the javascript snippet in the “URL” field, with any “Name”.



You can also add a keyboard shortcut to the function, using tinyMce’s interface directly. Again adding a snippet in a bookmark bar is easiest:


Clicking the shortcut enables a toggle toggles the shortcut for the current page. Using it by hitting ctrl+alt+m will mark the selected text as monospaced.

This was mentioned in the related JIRA issue as commented by @ andreas-klöber.

For bonus points, get greasemonkey or tampermonkey and paste in your user script, and update the matching urls to always execute on your confluence domain. Here is an example for the official atlassian confluence site:

// ==UserScript==
// @name         Toggle Confluence monospace with ctrl+alt+m
// @namespace
// @version      0.2
// @description  add keyboard shortcut to toggle monospace styling for selected text
// @author       Pavel Savshenko
// @match*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    if (tinyMCE && tinyMCE.activeEditor)  {
        console.log("Monospace patch loading");

This again comes from a comment in the JIRA issue mentioned.

Source : Link , Question Author : palacsint , Answer Author : tutuDajuju

Leave a Comment