Operation Manual

Nach oben
klicken.
Sie können die Statusleiste für Syntaxfehler deaktivieren, indem Sie auf der Code-Symbolleiste auf die Schaltfläche für Syntaxfehlermeldungen
klicken.
Einstellungen für Codehinweise festlegen
Sie können die Standardvoreinstellungen für Codehinweise ändern. Wenn beispielsweise keine Codehinweise für CSS-Eigenschaftennamen oder
Spry angezeigt werden sollen, können Sie sie in den Voreinstellungen für Codehinweise deaktivieren. Sie können darüber hinaus Voreinstellungen
für Verzögerungszeiten und schließende Tags festlegen.
Selbst wenn die Codehinweise deaktiviert sind, können Sie in der Codeansicht ein Popupmenü mit Codehinweisen einblenden, indem Sie
Strg+Leertaste drücken.
1. Wählen Sie „Bearbeiten“ > „Voreinstellungen“ aus.
2. Wählen Sie links in der Kategorieliste die Option „Codehinweise“.
3. Wählen Sie eine der folgenden Optionen:
Schließende Tags ermöglicht die Angabe, wie Dreamweaver schließende Tags einfügen soll. Standardmäßig fügt Dreamweaver das
schließende Tag automatisch ein, nachdem Sie die folgenden Zeichen eingegeben haben: </. Sie können dieses Standardverhalten ändern,
damit das schließende Tag nach der Eingabe der abschließenden spitzen Klammer (>) des öffnenden Tags oder überhaupt kein
schließendes Tag eingefügt wird.
Codehinweise aktivieren zeigt beim Eingeben von Code in der Codeansicht Codehinweise an. Stellen Sie mit dem Schieberegler
„Verzögerung“ die Wartezeit (in Sekunden) ein, nach der die entsprechenden Hinweise angezeigt werden sollen.
Beschreibungs-QuickInfos aktivieren zeigt eine ausführliche Beschreibung (sofern verfügbar) für den ausgewählten Codehinweis an.
Menüs ermöglicht die Angabe, welche Art von Codehinweisen beim Eingeben von Code angezeigt werden sollen. Wählen Sie alle oder nur
einige der Menüs aus.
Site-specific code hints
Dreamweaver CS5 lets developers working with Joomla, Drupal, Wordpress or other frameworks, to view PHP code hints as they write in Code
view. To display these code hints, you first need to create a configuration file using the Site-Specific Code Hints dialog box. The configuration tells
Dreamweaver where to look for code hints that are specific to your site.
For a video tutorial on working with Site-specific code hints, see www.adobe.com/go/learn_dw_comm13_de.
Create the configuration file
Use the Site-Specific Code Hints dialog box to create the configuration file needed to display code hints in Dreamweaver.
By default, Dreamweaver stores the configuration file in the Adobe Dreamweaver CS5\configuration\Shared\Dinamico\Presets directory.
Hinweis: The code hints you create are specifically for the site selected in the Dreamweaver Files panel. In order for the code hints to display,
the page you are working on must reside in the currently selected site.
1. Select Site > Site-Specific Code Hints.
By default, the Site-Specific Code Hints feature scans your site to determine which Content Management System (CMS) framework you’re
using. Dreamweaver supports three frameworks by default: Drupal, Joomla, and Wordpress.
The four buttons to the right of the Structure pop-up menu let you import, save, rename, or delete framework structures.
Hinweis: You cannot delete or rename the existing default framework structures.
2. In the sub-root text box, specify the sub-root folder where you store your framework’s files. You can click the folder icon next to the text box
to browse to the framework files’ location.
Dreamweaver displays a file tree structure of folders that contain your framework files. If the folders and/or files you want to scan are all
displayed, click OK to run the scan. If you want to customize the scan, go on to the next steps.
3. Click the plus (+) button above the Files window to select a file or folder that you want to add to the scan. In the Add Files/Folders dialog
box, you can specify particular file extensions that you want to include.
Hinweis: Specifying particular file extensions speeds up the scanning process.
4. To remove files from the scan, select the files you don’t want scanned, and then click the minus (-) button above the Files window.
Hinweis: If Drupal or Joomla is the selected framework, the Site-Specific Code Hints dialog box displays an additional path to a file within
your Dreamweaver configuration folder. Don’t delete this—it’s required when using these frameworks.
5. To customize how the Site-Specific Code Hints feature treats a particular file or folder, select it from the list and do one of the following:
Select Scan This Folder to include the selected folder in the scan.
Select Recursive to include all files and folders within a selected directory.
466