How do I indent text?

Text currently looks like this:

Sub Main 'Start Sub Routine
Call Noise ' Call Beep
MsgBox "Returns a Beep" ' Message box
End Sub ' End subroutine
Sub Noise ' Start of routine
Dim lAnswer As Long ' Declare long Reply
Dim vMsg As Variant ' Declare variables.
Do ' Control structure
lAnswer = InputBox("Enter a value from 1 to 3.")
If (lAnswer >= 1 And lAnswer <= 3) Then ' Check range.
Exit Do ' Exit Do...Loop.
Else ' Error
Beep ' Beep eror.
End If ' End Construct
Loop ' Loop
MsgBox "You entered a value in the proper range."
End Sub ' End of Routine
' End of XCM

How can I indent the text, so it looks like the below:

Sub Main 'Start Sub Routine

Call Noise ' Call Beep

MsgBox "Returns a Beep" ' Message box

End Sub ' End subroutine

Sub Noise ' Start of routine

Dim lAnswer As Long ' Declare long Reply

Dim vMsg As Variant ' Declare variables.

Do ' Control structure

lAnswer = InputBox("Enter a value from 1 to 3.")

If (lAnswer >= 1 And lAnswer <= 3) Then ' Check range.

Exit Do ' Exit Do...Loop.

Else ' Error

Beep ' Beep eror.

End If ' End Construct

Loop ' Loop

MsgBox "You entered a value in the proper range."

End Sub ' End of Routine

' End of XCM

3 answers

1 accepted

To indent general text, you can use the Indent User Macro. Default is set to one level of indent, but you can specify however many levels that you want/need.

Dave

1 vote
David Simpson Community Champion Sep 05, 2011
Wrap it in a {code} macro.

You'll be able to indent text in the new editor coming in Confluence 4.0 later this month. See:

http://blogs.atlassian.com/confluence/2011/08/confluence-4-wiki-beta-available.html

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Confluence

Color tables for a shiny Confluence page

...; ## Developed by: Alana Fernando ## Shared with love ## @param style:title=style type|type=enum|required=true|desc=Choose a style.|enumValues=Style1,Style2,Style3,Style4,Style5 ## @param alignment:title...

208 views 10 14
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you