atlassian


compact code block in confluence wiki


https://en.wikipedia.org/wiki/Unix_filesystem
In the above link wiki generates a "compact" inline code block, that is, the block stops at the last letter of the code instead of the whole line.
Is there a way to achieve this effect in confluence wiki?
OOTB, the only way to do this is with monospace text, but you don't get the background and border.
On Confluence Cloud, you have no other option.
If you are on Confluence Server, you could add a new user macro:
## Macro Name: decorate-inline-code
## Macro Title: Decorate Inline Code
## Macro has a body: N
## Body processing: n/a
## Output: HTML
##
## Developed by: David Simpson
## Date created: 2016-12-08
## Installed by: Your Name
## Simple user macro to decorate inline `<code>hello world</code>` blocks with a border & background color
## This should not decorate any `<pre><code>:(</code></pre> blocks
## #noparams
<style>
#content code:not([class]) { #* ignores <code> in the code macro *#
background: #fafafa;
border: 1px solid #ddd;
border-radius: 4px;
padding: 1px 4px;
}
</style>
This user macro can be added to the page once.
It finds all <code> blocks on a page and decorates them with a background and border
It ignores <code> in the code macro

Related Links

Sourcetree Installation - Atlassian Login Stuck
DITA to Confluence 5+
Get list of new wiki pages using Confluence API
Atlassian Plugin Descriptor XML Schema
Is there a way to use a plugin/macro in Confluence to display results on a page?
how to find out how many times blueprints in confluence has been used
Converting a RefApp REST plugin into a Confluence plugin
Show HTML artifacts in bamboo without downloading
Atlassian Bitbucket Server Precommit Issue getting files
Atlassian Stash popup on Pull Request
Failed to load resource:soy template {Not all code is in Soy V 2 syntax (found file simple.soy not in Soy V2 syntax). }
Integrate HipChat into Slack
Section in Atlassian products (refapp)
How to read a file contained as a hash in Atlassian Stash Repository Hook?
Is atlas-run the only way to see how the changes are reflected?
Restore Stash from backup

Categories

HOME
facebook-oauth
checkstyle
fuelux
github-for-windows
character-encoding
jwplayer
spring-data-redis
switch-statement
big-o
pyqt4
opengl-3
elasticsearch-5
teechart
spin
32bit-64bit
android-securityexception
activecollab
naivebayes
selectize.js
qsqlquery
alpacajs
powershell-v5.0
microsoft-dynamics-nav
sse
googlebot
dataflow-diagram
event-store
jboss6.x
game-theory
moses
pic32
oculus
cppreference
failover
vex
google-earth
boost-asio
cognos-bi
left-join
rselenium
instantiation
vue-chartjs
openalpr
protein-database
metaprogramming
odoo-website
parser-generator
lpsolve
signal-strength
procfile
jide
vaadin-elements
chai-as-promised
launchctl
tinymce-3
posixct
zenhub
compiler-design
spring-data-couchbase
janus
d3-force-directed
javafx-css
stax
adafruit
mongodb-php
synonym
udpclient
kiosk
aspen
crouton-os
jnlua
custom-errors
decimalformat
gocql
qt5.2
node-serialport
fail2ban
j-security-check
mmwormhole
phpldapadmin
theos
primitive-types
teaspoon
named-parameters
personalization
wxformbuilder
spring-remoting
file-not-found
dsym
koala
gwt-openlayers
dtmf
hidapi
tlf
route-provider
onmousemove
wcf-configuration
cgimage
procedures
screen-size
event-receiver
silent
software-lifecycle
product-management
leader

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App