About Arbortext Styler > Arbortext Styler Window and Editors > PTC ALD Source Editor
  
PTC ALD Source Editor
The PTC ALD Source Editor enables you to make changes to the JavaScript-based PTC ALD source for a stylesheet object. It is accessed from Arbortext Styler via the following option:
Edit > Edit Object Source > APP (name of menu option depends on which list view is currently active)
The PTC ALD Source Editor contains the following menu options:
File Menu in PTC ALD Source Editor
Menu option
Description
Apply
Apply any changes made in the PTC ALD Source Editor window to the stylesheet.
Apply and Close
Apply any changes made in the PTC ALD Source Editor to the stylesheet and close the window.
Close
Close the PTC ALD Source Editor window. Any changes that have not been saved will be lost.
Edit Menu in PTC ALD Source Editor
Menu option
Description
Undo
Undo the last action, if possible.
Redo
Redo the last action that was undone, if possible.
Cut
Cut the selection and places it on the clipboard.
Copy
Copy the selection to the clipboard.
Paste
Paste the contents of the clipboard to the cursor location.
Delete
Delete the selection.
Find
Help Menu in PTC ALD Source Editor
Menu option
Description
Edited Source Help
Open the help topic associated with the PTC ALD Source Editor.
FOM Reference Manual
Open the Formatting Object Model Reference.
Display Features
The PTC ALD Source Editor facilitates viewing/editing of PTC ALD source by providing advanced display features:
Syntax highlighting — tokens are displayed in different colors:
Comments — green
JavaScript keywords — blue
Literal values (quoted strings and numbers) — dark red
Line numbering — automatic non-editable line numbers starting at 1, with line wrap off
Auto-indent — when you press ENTER, the cursor is placed on the next line in the most likely column:
After a { — the next line is indented two characters more than the previous line
After a } — the next line is indented two characters less than the previous line
General — the same indent as the previous line
Auto-completion
When entering the member operator . — if the type to the left of the member operator can be determined, a list of possible members is presented
When entering ( — if the identifier to the left is a function that can be determined, a description of the available parameters is presented
JavaScript syntax validation — performed when you elect to close the PTC ALD Source Editor
Any syntax errors discovered are listed.