A lot of time in tickets we need to cut/paste code or shell exemple but as zammad has shortcut for italic/bold/h1 etc… i dont see any way to ask for a text formating for code.
This mean text that has monospaced fonts and no html interpretation. Basicaly <p> </p>.
This forum has it has ctrl+E preformated text but zammad does not allow this it seems.
i see numerous previous ask for this “code”/“shell” formatting but all are closed more than 5 years ago all with ‘too much people want that, closing because too much noise’
I tried to look in the code how is made the BOLD shortcut in hope to make it myself but is dont find where its done.
We would also appreciate such a feature. Where would be the best place to issue a feature request?
As a workaround, I am planning to create a custom css file, namely /opt/zammad/app/assets/stylesheets/custom/custom.css and abuse the i element, so Ctrl-i should show up as preformatted text in the editor.
i {
font-family: monospace;
font-style: normal;
white-space: pre;
}
The best place would be this community forum. So curious already did the right thing by creating this thread. If you want to give it more momentum, make sure to like his first post.
This way it may grab the attention of a coder and open-source enthusiast that contributes to the source code of Zammad or maybe the attention of our PO/dev team.