About Arbortext Styler > Arbortext Styler Window and Editors > Source Editor
  
Source Editor
The Source Editor enables you to make changes to the source code. It is accessed from within Arbortext Styler via the following options:
Edit > Edit Object Source (name of menu option depends on which list view is currently active)
Tools > Advanced Edited Source > Edit FOSI Resource Description
Tools > Advanced Edited Source > Edit Common XSL Source
Tools > Advanced Edited Source > Edit XSL Root Template
The Source Editor contains the following menu options:
File Menu in Source Editor
Menu option
Description
Apply and Close
Apply any changes made in the Source Editor to the stylesheet and close the window.
Apply
Apply any changes made in the Source Editor window to the stylesheet.
Close
Close the Source Editor window. Any changes that have not been saved will be lost.
Edit Menu in Source Editor
Menu option
Description
Undo
Undoes the last action, if possible.
Repeat
Repeats the last action, if possible. The option changes to Can't Repeat if a repeat is not possible.
Cut
Cuts the selection and places it on the clipboard.
Copy
Copies the selection to the clipboard.
Paste
Pastes the contents of the clipboard to the cursor location.
Delete
Deletes the selection.
Delete Markup
Delete the currently selected markup.
Change Markup
Opens the Change Markup dialog box.
Modify Attributes
Opens the Modify Attributes dialog box.
Delete All Attributes
Deletes all attributes of the currently selected element.
Select Element Content
Select the content of the element at the cursor position.
Select Element
Select the element at the cursor position.
Split
Split the selected markup.
Join
Join the selected markup.
Edit Selection as XML source
Opens the XML Source Editor.
Find Menu in Source Editor
Menu option
Description
Find/Replace
Opens the Find/Replace dialog box, allowing you to search for elements and element content.
Go To
Opens the Go To dialog box, allowing you to select and jump to an identified location in your source.
Find Next
Repeats the last Find operation specified from the current cursor location.
Find Selection
Searches forward from the current cursor location to the next match using the highlighted section in your document as the search string.
Replace
Replaces matched Find What text with the Replace With text from the Find/Replace dialog box or from the previous substitute command. It then locates the next occurrence of the text string to replace. Replace is disabled if no text is selected or if the selection contains markup from a different find operation.
Replace All
Replaces all occurrences of the Find What text with the Replace With text from the Find/Replace dialog box or from the previous substitute command. Replace All is disabled if no text is selected or if the selection contains markup from a different find operation.
Find Element Start
Moves the cursor to the start tag of the element tag pair containing the cursor.
Find Element End
Moves the cursor to the end tag of the element tag pair containing the cursor.
Find Tag/Attribute
Opens the Find Tag/Attribute dialog box, allowing you to search for a particular element, attribute or attribute value.
View Menu in Source Editor
Menu option
Description
Collapse Element Content
If your cursor is placed next to an element tag, this option collapses the element content. It also collapses the content of expanded entity tags, and SGML comments. Choosing this menu command again collapses the next element up in the hierarchy.
Document Map
This submenu contains the following options:
Document Map - toggles the display of the source in Document Map format.
Synchronize Views - manually synchronizes the cursor position in both panes of the Source Editor window, when the window is split. Selecting this option places the cursor in the same place in both panes.
Auto Synchronize - manually synchronizes the cursor position in both panes of the Source Editor window, when the window is split. Selecting this option keeps the cursor in the same place in both panes at all times.
No Text in Map - Suppresses the display of text in the Document Map.
Line Text in Map - Displays any text in the Document Map in a single line that does not wrap.
Wrap Text in Map - Displays any text in the Document Map in lines that wrap when the end of a line is reached.
Full End Tags - Displays tag names and icons.
Partial End Tags - Displays tag icons.
No End Tags - Suppresses the display of tags.
Expand Attributes - Displays all attributes associated with each element in the Document Map window.
Font Size
This submenu contains the following options:
Increase - Increases the size of the font in the pane with the focus. Font size in percent is shown in the status bar. The limit is 500% of the default size.
Decrease - Decreases the size of the font in the pane with the focus. Font size in percent is shown in the status bar. The limit is 40% of the default size.
Full Tags
Displays all tags and tag names.
Partial Tags
Displays the tags as icons.
No Tags
Suppresses the display of tags.
Insert Menu in Source Editor
Menu option
Description
Markup
Opens the Insert Markup dialog box.
Symbol
Adds a symbol to your document.
Comment
Adds a comment tag pair at the cursor location. Only text can be inserted inside the comment tags; no markup is allowed. Text inside the comment tags is visible only in the Edit pane, not in the Print Preview window or in print output.
File
Opens the Insert File dialog box. Use this dialog box to select a file to copy into the current document at the cursor location.
Bookmark
Opens the Bookmarks dialog box.
Quickmark
Inserts a Quickmark at the cursor location.
Tools Menu in Source Editor
Menu option
Description
Macro
The submenu contains the following options:
Macros - Play and edit an existing macro.
Record New Macro - Record the steps you perform and save them as a macro for later use.
Cancel Recording - Cancel the recording of a macro.
Context Rules
Ensures markup is valid by making sure it is inserted in the proper context in the document. Context rules are turned on if a check mark appears next to Context Rules.
Window Menu in Source Editor
Menu option
Description
No Split
Turns a split window into a single-pane window.
Left-Right Split
Splits a single-pane window or top-bottom split window into two side-by-side panes.
Top-Bottom Split
Splits a single-pane window or side-by-side split window into panes, one above and one below.
Help Menu in Source Editor
Menu option
Description
Edited Source Help
Open the help topic associated with the Source Editor.