Smart Confluence 'Terminal' Macro

We were reading through some Tangosol documentation recently (which is conveniently built using Confluence) and we saw a handy little trick on this page.
They created a user-macro to display a terminal style for the chunks of their documentation that represent command-line interaction the user should follow.
It’s easy, it’s fun, and it makes your documentation much clearer. Here’s how they did it:

<STYLE TYPE="text/css">
PRE.term {
border-right:     #cccccc 1px solid;
border-top:       #cccccc 1px solid;
border-left:      #cccccc 1px solid;
border-bottom:    #cccccc 1px solid;
padding:          5px 5px 5px 5px;
background-color: black;
font-size:        100%;
color:            #eeeeee;
}
</STYLE>
<pre class="term">
$body
</pre>

Feel free to tweak the colors and fonts as you wish. And enjoy!

Published

in

Related Content

More in ‘

Warning: Undefined array key “link” in /srv/users/atlassian/apps/atlassianstaging/public/wp-content/plugins/curator/template-parts/cards/article-card.php on line 119
Company News
Announcing social enterprise discounts: Atlassian tools for social impact teams

Warning: Undefined array key “link” in /srv/users/atlassian/apps/atlassianstaging/public/wp-content/plugins/curator/template-parts/cards/article-card.php on line 119
Leadership
Great managers meet uncertainty with curiosity and confidence

Warning: Undefined array key “link” in /srv/users/atlassian/apps/atlassianstaging/public/wp-content/plugins/curator/template-parts/cards/article-card.php on line 119
Company News
Introducing Databricks Query Runner: Transforming data into insight

Warning: Undefined array key “link” in /srv/users/atlassian/apps/atlassianstaging/public/wp-content/plugins/curator/template-parts/cards/article-card.php on line 119
Company News
Team ’25 Europe: AI that’s changing the game for teams

More Collections


Warning: Undefined array key “link” in /srv/users/atlassian/apps/atlassianstaging/public/wp-content/plugins/curator/template-parts/cards/article-card.php on line 119

Meet Rovo everywhere: AI that connects every app, every team, every workflow


Warning: Undefined array key “link” in /srv/users/atlassian/apps/atlassianstaging/public/wp-content/plugins/curator/template-parts/cards/article-card.php on line 119

Introducing Atlassian Software Collection


Warning: Undefined array key “link” in /srv/users/atlassian/apps/atlassianstaging/public/wp-content/plugins/curator/template-parts/cards/article-card.php on line 119

Move Faster and Work Smarter with Atlassian’s AI-Powered Teamwork Collection