Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Advanced Formatting Techniques

Phillip Ponzer [Cprime]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 18, 2012

http://confluence.atlassian.com/display/CONF40/Confluence+Wiki+Markup

This Confluence Wiki Markup page details a lot of what the WYSIWYG editor can do, but some abilities seem missing. For instance, left/center/right align and font color don't have formatting shortcuts similar to * for bold and _ for italics.

Looking around some more revealed that this used to be supported (amongst others):

Are there any other advanced formatting techniques out there that aren't well-known? For instance, I'd like to know how to apply a smaller font size to some text, or even a different color (without using the buttons in the WYSIWYG editor), perhaps I'd like to specify something other than predefined "red", "blue", or "green" colors, maybe I'd like to change the alignment of the text.

Any thoughts?

1 answer

1 accepted

2 votes
Answer accepted
Andrew Frayling
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 28, 2012

Hi Phillip,

There's nothing in the editor at the moment that lets you change font size, alignment, etc. using shortcuts rather than the editor menus, but Atlassian are tracking all feedback on the editor at http://confluence.atlassian.com/display/DOC/Confluence+4.0+Editor+-+Customer+Feedback so if these are features that you'd like to see you can leave a comment on the page.

In the meantime you may find these documents useful:

Quick Reference Guide for the Confluence Editor

Keyboard Shortcuts

Using Autocomplete

Also, looking at the comment you left on https://answers.atlassian.com/questions/4167/the-style-macro-doesn-t-seem-to-work you can enter these sort of CSS properties without needing the {style} macro by enabling the {html} macro that ships with Confluence, but is disabled by default. To enable:

1. Log in to Confluence as a Confluence Administrator
2. Select Browse -> Confluence Admin -> Plugins
3. Select Show System Plugins
4. Search for HTML
5. Click Manage plugin modules on the Confluence HTML Macro
6. Enable the HTML macro

In the editor you can now use raw HTML by using the {html} macro, e.g.

{html}
<p style="text-align:center">hello</p>
{html}

Hope that helps?

Andrew.

Phillip Ponzer [Cprime]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 2, 2012

Perhaps I should've been more indicative in my post. I'm currently converting our MediaWiki into Confluence using the UWC and whenever I use the {html} macro (as a replacement for a few regex's in the converter.mediawiki.properties file), it fails to upload (perhaps convert?) the page altogether. Maybe I should tag UWC in this question... :)

Phillip Ponzer [Cprime]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 12, 2012

For instance, using this in the converter.mediawiki.properties file doesn't work (as in, it bails the conversion when it tries to do this):

Mediawiki.1420.optionalunnestedhtml-big.java-regex=<big>(.*?)<\/big>{replace-with}{html}<big>$1<\/big>{html}

Andrew Frayling
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 12, 2012

Hi Phillip,

It might be worth starting a new question specifically about UWC for the issues you're getting with your conversion. I'm not a UWC expert, but I know the UWC authors are active on Atlassian Answers and are very helpful with questions about UWC.

Andrew.

Phillip Ponzer [Cprime]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 9, 2012

In reply to my comment about the "big" HTML tags not converting properly, it was because I didn't have the deprecated HTML macro enabled.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events