Right Toolbar

The right toolbar is part of the main application window of Code Roar. It contains buttons designed specifically for:

 

 

The following figure shows the right toolbar in Code Roar:

 

 

Accessibility:  Docked at the bottom of the main application window.

 

Description of Components

Component

Description

Indent/Outdent

Indent text

Indents the selected text based on the current indent size. The indent size is configured in the Options sub-tab of the File types tab in the Settings dialog.

 

Un-indent text

Un-indents the selected text based on the current indent size. The indent size is configured in the Options sub-tab of the File types tab in the Settings dialog.

 

Indent text by single space

Indents the selected text by a single space.

 

Un-indent text by single space

Un-indents the selected text by a single space.

 

Prefix indent text

Indents the selected text with a prefix. The user is prompted to enter the prefix after pressing the button.

 

Prefix un-indent text

Un-indents the selected text by removing a given prefix. The user is prompted to enter the prefix after pressing the button.

 

Comments

Block comment selection

Block comment the selection using the format appropriate to the active document. The settings for block comments are located in the Comments sub-tab of the File types tab in the Settings dialog. If no block comment format is configured for the active file type this button does nothing.

 

Line comment in

Comment out the selection using on or more single line comments in the format appropriate to the active document. The settings for single line comments are located in the Comments sub-tab of the File types tab in the Settings dialog. If no line comment format is configured for the active file type this button does nothing.

 

Line comment out

Un-comment the selection by removing the single line comment marker at the beginning of the selection. Comments that are not at the beginning of the selection block are not removed. The settings for single line comments are located in the Comments sub-tab of the File types tab in the Settings dialog. If no line comment format is configured for the active file type this button does nothing.

 

Box comment

Block comment the selection using the box comment format appropriate to the active document. If no line comment format is configured for the active file type this button does nothing.

 

Alignment

Left justify text

Left justifies the active selection. For this feature to work correctly one or more lines must be selected. It does not function on partial line selections. For example, in the diagram below the user is left justifying the selected line and selects the entire line such that the cursor is located at the beginning of the next line:

 

       

 

Pressing the left justify button yields the following result:

 

       

 

Right justify text

Right justifies the active selection. The right justify uses the Right edge mark for the file type to determine the point where the text is justified. For this feature to work correctly one or more lines must be selected. It does not function on partial line selections. For example, in the diagram below the user is right-justifying the selected line and selects the entire line such that the cursor is located at the beginning of the next line:

 

       

 

Pressing the right justify button right justifies the text against the right edge mark as shown below:

  

       

 

Center text

Centers the active selection. The center text uses the Right edge mark and the start of the line to determine the center point of the text. For this feature to work correctly one or more lines must be selected. It does not function on partial line selections. For example, in the diagram below the user is centering the selected line and selects the entire line such that the cursor is located at the beginning of the next line:

 

       

 

Pressing the center button centers the text between the start of the line and the right edge marker as shown below:

 

       

 

Text case

Uppercase selected text

Converts the selection to uppercase.

Lowercase selected text

Converts the selection to lowercase.

Special functions

Enumerate selection

Prompts the user with the Enumerate text dialog allowing for the enumeration of a selection. For more information on using this feature refer to the Enumerating text topic.

Insert ASCII

Prompts the user with the Insert ASCII dialog allowing the user to insert a particular ASCII character at the current cursor location.