decorative banner

Using the Source Code palette


    Just like the source code pane, the Source Code palette lets you work in the Layout Editor, Frame Editor, or Outline Editor and see the underlying source code at same time. But the Source Code palette also provides two advantages for working with source code. The first advantage is that if your computer uses dual monitors, you can view a document in the Layout Editor on one monitor, while also viewing the underlying source code in the Source Code palette on the second monitor. Changes you make in the Layout Editor are reflected in the Source Code palette, and vice versa after you click in the Layout Editor again.

    The other advantage is that you can set the Source Code palette to Local Mode and display the code only for the element(s) currently selected in the Layout Editor, Frame Editor, or Outline Editor. Normally, the Source Code palette displays code for the entire document. The Local Mode option lets you limit the amount of code displayed for easier editing.

To use the Source Code palette:

  1. In the Layout Editor, Frame Editor, or Outline Editor, choose Window > Source Code.
  2. Choose any of the following from the Source Code palette menu:
    • Local Mode displays the code for the currently selected element only in the Layout Editor, Frame Editor, or Outline Editor.
    • Word Wrap wraps the contents to the margin of the Source Code palette. If you resize the palette with this option enabled, the contents wrap to the palette's new size.
    • Display Line Numbers shows code line numbers.
    • Dim When Inactive dims the contents of the Source Code palette when you're working in the Layout Editor, Frame Editor, or Outline Editor. The dimming turns off when you click in the Source Code palette.