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

This widget could not be displayed.

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

This widget could not be displayed.
David Simpson Community Champion Sep 05, 2011
Wrap it in a {code} macro.
This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Tuesday in Confluence

Add-on evaluation with confluence templates

Atlassian market place contains number of Apps/Addons which improves the capability of out of the box Atlassian products. It is good to follow a plugin evaluation process before install add-ons. So t...

92 views 12 6
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