User Guide

578
Chapter 25: Editing source code
Source code editors and preferences
GoLive source code editors
When youworkinthe Layout Editor,GoLivewritesall of thesourcecodefor you. If youwanttoworkdirectlywith
HTML or JavaScript source code, you can use several different source code editors. Changes you make in the
document window are immediately reflected in all source code editors, and vice versa.
Source Code Editor Lets you edit your documents HTML source code in text format, perform a syntax check, and
visually distinguish elements, attributes and content by color. You can type or paste text from another document or
application, and make and save changes.
Source code panel and Source Code palette Let you edit source code while in the Layout Editor, the Frame Editor,
or the Outline Editor without switching tabs in the document window. The source code editing features function just
like the Source Code Editor features.
Visual Tag Editor Lets youinsertHTMLcodeormakechanges to existing code whileworking in theLayout Editor.
Markup palette Lets you insert common HTML or JavaScript attributes while working in the Layout Editor, Frame
Editor, or the Outline Editor (for more information, see “To use the Markup palette” on page 580).
Outline Editor Presents the HTML code of your documents in a hierarchical, organized way, and provides a menu
of attributes for every element in the document.
JavaScript Editor Lets you build scripts in the application, embed them in your document, and test them immedi-
ately by launching the targeted browser.
GoLive includes several scripting samples in the New dialog box (File > New). You can choose from a variety of
script-based pages and scripting samples, including ASP, JSP, or PHP pages and QuickTime, CGI, Java, and Perl
scripts.
See also
Snippets” on page 429
Components” on page 427
Source preferences
Source preferences control how the Source Code and JavaScript Editors work, and how source code appears in the
Source Code and JavaScript Editors.
Source preferences Turn on and off word wrapping, support for dragging marked text, and control how source
code appears in the Source Code and JavaScript Editors. A preview panel in the Preferences dialog box shows you
how the source code appears as a result of the options you select.
Themes preferences Let you select, customize, and rename source code themes, as well as set color, font face, and
font size options for elements in different languages (for example, PHP, JavaScript, and HTML). Key sets enable you