Start learning with our library of video tutorials taught by experts. Get started

Dreamweaver CS6 Essential Training

Setting code preferences


From:

Dreamweaver CS6 Essential Training

with James Williamson

Video: Setting code preferences

Just like any other task you'll perform in Dreamweaver, you'll have your own personal preferences in terms of how you like to write and edit your code. Thankfully, Dreamweaver has a multitude of preferences that you can set to make sure that your code is created exactly the way you want. So to take a look at those preferences we are going to go up to our Dreamweaver Preferences which again, on the PC you'll find under Edit>Preferences, on the Mac you'll find it under Dreamweaver> Preferences, and we are going to start by looking at the Code Coloring category over here on the left-hand side. Now when I select that, I can see that I have some basic coloring scheme options, like default background.
Expand all | Collapse all
  1. 1m 4s
    1. What is Dreamweaver?
      1m 4s
  2. 5m 44s
    1. Welcome
      1m 4s
    2. Using the exercise files
      2m 17s
    3. Learning web design
      2m 23s
  3. 1h 0m
    1. Looking at the Welcome screen
      5m 9s
    2. Exploring Windows and Mac interface differences
      5m 6s
    3. Arranging panels
      8m 44s
    4. Managing workspaces
      10m 14s
    5. Exploring the Application toolbar
      6m 21s
    6. Exploring the Document toolbar
      8m 47s
    7. Working with the Property inspector
      9m 30s
    8. Using the Insert panel
      6m 30s
  4. 53m 3s
    1. Understanding basic site structure
      3m 46s
    2. Exploring file naming conventions
      2m 10s
    3. Defining a new site
      5m 23s
    4. Managing files and folders
      7m 57s
    5. Adding remote servers
      7m 4s
    6. Uploading files
      12m 46s
    7. Previewing in browsers
      9m 11s
    8. Managing multiple sites
      4m 46s
  5. 36m 41s
    1. Creating new documents
      6m 49s
    2. Setting up new document preferences
      5m 30s
    3. Setting accessibility preferences
      6m 49s
    4. Working with starter pages
      4m 32s
    5. Managing starter pages
      13m 1s
  6. 37m 23s
    1. Getting text into Dreamweaver
      8m 43s
    2. Importing Word documents
      4m 6s
    3. Adding structure to text
      7m 35s
    4. Creating lists
      4m 35s
    5. Creating definition lists
      4m 0s
    6. Using the Quick Tag Editor
      8m 24s
  7. 44m 41s
    1. Exploring the Code toolbar
      5m 41s
    2. Setting code preferences
      7m 19s
    3. Using code hints
      8m 8s
    4. Wrapping tags
      5m 7s
    5. Adding comments
      6m 29s
    6. Using snippets
      7m 32s
    7. Formatting source code
      4m 25s
  8. 1h 19m
    1. Setting CSS preferences
      9m 32s
    2. An overview of the CSS Styles panel
      9m 23s
    3. Creating a new CSS rule
      6m 42s
    4. Using the CSS Rule Definition dialog
      7m 25s
    5. Organizing styles
      7m 22s
    6. Modifying style properties
      6m 17s
    7. Controlling CSS through the Property inspector
      6m 37s
    8. Attaching external style sheets
      5m 54s
    9. Using CSS visual aids
      7m 3s
    10. Using CSS Inspect
      6m 48s
    11. Using the Code Navigator
      6m 39s
  9. 1h 11m
    1. Managing assets in Dreamweaver
      7m 30s
    2. Setting external image editing preferences
      4m 26s
    3. Placing images on the page
      10m 12s
    4. Exploring Photoshop integration
      7m 17s
    5. Modifying Smart Objects
      9m 42s
    6. Modifying image properties
      8m 4s
    7. Styling images with CSS
      6m 45s
    8. Using background graphics
      7m 28s
    9. Positioning background graphics
      10m 10s
  10. 36m 23s
    1. Link basics
      3m 17s
    2. Setting site linking preferences
      2m 19s
    3. Creating links in Dreamweaver
      9m 17s
    4. Using absolute links
      3m 43s
    5. Using named anchors
      6m 41s
    6. Creating an email link
      5m 25s
    7. Creating CSS-based rollovers
      5m 41s
  11. 44m 30s
    1. Reviewing table structure
      5m 20s
    2. Importing tabular data
      6m 46s
    3. Creating accessible tables
      6m 11s
    4. Exploring basic table styling
      9m 42s
    5. Styling alternate rows
      8m 57s
    6. Creating custom table borders
      7m 34s
  12. 59m 15s
    1. Understanding how forms work
      2m 45s
    2. Reviewing form design
      3m 44s
    3. Creating accessible forms
      5m 16s
    4. Setting form properties
      2m 39s
    5. Using the fieldset and legend tags
      2m 52s
    6. Inserting text fields
      6m 56s
    7. Inserting list menu items
      7m 54s
    8. Inserting checkboxes
      4m 14s
    9. Inserting radio button groups
      3m 52s
    10. Inserting submit buttons
      2m 25s
    11. Exploring basic form styling
      8m 2s
    12. Exploring form element styling
      8m 36s
  13. 33m 25s
    1. Adding CSS3 transitions
      8m 29s
    2. Spry overview
      2m 44s
    3. Using Spry widgets
      3m 57s
    4. Adding Spry effects
      8m 1s
    5. Using the Widget Browser
      7m 4s
    6. Extending Dreamweaver
      3m 10s
  14. 1m 2s
    1. Additional resources
      1m 2s

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
Please wait...
Dreamweaver CS6 Essential Training
9h 24m Beginner May 07, 2012

Viewers: in countries Watching now:

Discover how to build web sites, prototypes, and more in this course on Adobe Dreamweaver CS6. Author James Williamson shows designers how to take control of their site by properly naming and structuring files and folders; how to create new documents and web pages from scratch or with starter pages; and how to add content such as text, images, tables, and links. James also provides a background on the languages that power projects built in Dreamweaver—HTML and CSS—and introduces the programming features in the application, for developers who want to dig right into the code. The last chapter shows how to finesse your project with interactive content such as CSS3 transitions and Spry widgets.

Topics include:
  • Choosing and customizing a workspace
  • Defining a new site
  • Uploading files to your site
  • Creating new documents and web pages
  • Formatting source code
  • Working with CSS
  • Placing images and background graphics
  • Creating links
  • Styling a basic table
  • Creating a web form with buttons, check boxes, and list menus
  • Adding Spry effects
Subject:
Web
Software:
Dreamweaver
Author:
James Williamson

Setting code preferences

Just like any other task you'll perform in Dreamweaver, you'll have your own personal preferences in terms of how you like to write and edit your code. Thankfully, Dreamweaver has a multitude of preferences that you can set to make sure that your code is created exactly the way you want. So to take a look at those preferences we are going to go up to our Dreamweaver Preferences which again, on the PC you'll find under Edit>Preferences, on the Mac you'll find it under Dreamweaver> Preferences, and we are going to start by looking at the Code Coloring category over here on the left-hand side. Now when I select that, I can see that I have some basic coloring scheme options, like default background.

So for example I could change that to black and when I click OK, I notice that now my coding window is black. So if you have a specific color coding scheme that you're used to working with in maybe a different code editor, you can go ahead and mimic that by changing those preferences. Now I want to bring those back up again and I want to point out something that is really important here. You'll notice that there is no button for me to click on to go back to the default. So if you change those and you sort of forget you know like, oh I didn't mean to do that, to go back, you are just going to have to remember or you going to have to throw your Preferences away and start all over again which is hardly fun.

So be very careful, you might want to even write those down the first couple of times you edit that. Now, in addition to sort of these default options that we have here for just the coding window itself, we also have the ability to edit the Coloring Scheme of any specific type of document. In this case of course we are focusing on HTML. If I click the Edit Coloring Scheme, you can see that I have all sorts of different options. If you know what I am going to do, hang on just one second here. I need to click OK again to set that back to white and I'll bring my Preferences back up. That way when we look at the Coloring Scheme, we are seeing an accurate preview of the way our code is going to look.

So, right down here in the Preview section, if I scroll through this, I can see all of the different elements of an HTML file and sort of how they're going to be coded in terms of their color. Now you might say to yourself, well yeah, that's not a big deal. What does it matter? It really does matter. Let me show you what I mean. So if you want to change a color of a specific element or attribute, one way to do that is to look for the Styles for list and find it, but if you're new to HTML or maybe you don't know what exactly something is called, you can simply click inside the Preview and it will jump to that value.

So this for example is an HTML attribute value and currently the color for those guys is blue. Well, I can change that color if I want to, but I need to be very, very careful about that and let me show you why. Again, I am just going to click OK, I am not going to change it and click OK again. The Code Coloring in Dreamweaver really does matter. Let's say that I'm working on my code and I forget to close one of the quotation marks for this particular attribute. As soon as I hit Backspace here to get rid of it, watch what happens to the code that comes after it. So what's happening is, all this code after it is seen as still belonging to this particular attribute, and it's going to keep going until it runs into another quotation mark.

That is a syntax error and through the use of Code Coloring, I can pick up on that and find that really easily. And sometimes it's a little bit more noticeable than others. Notice if I do here for example, that entire section of code now turns into blue. So that's sort of a visual clue to me, oh something is wrong with this code. Then I could scroll back up, see when my code sort of returns back to its normal Code Coloring and say, oh okay, well it's probably something to do with an attribute because it's using the color blue. So once you're used to the Code Coloring inside Dreamweaver, you'll sort of instantly pick up on what's wrong with your code and where it's wrong.

So pay close attention to the Code Coloring that Dreamweaver does for the code, and only change it if you have a very specific reason for doing that. All right! I am going to go back up to my Preferences and I am going to click on Code Formatting. Now I am not going to go through every single option here, if you want to kind of play around with this, feel free. But essentially, what this does is it handles how the code is formatted within the window, the type of indentations that you are using, whether you are using uppercase or lowercase letters for your tags and attributes, all sorts of things like that. We also have Advanced Formatting options for things like CSS, where you can go ahead and format your CSS code.

Now we are going to take a closer look at these options towards the end of this chapter. We also have a wonderful feature called Code Hinting. When you're writing code inside Dreamweaver, Dreamweaver can help you complete your code by offering you a hint, what it thinks you want to do. Whether you are applying a class attribute or finishing an h1 tag, doesn't really matter, Code Hinting will come up and allow you to rapidly complete that. Again you can change some of the preferences here, but the default preferences are basically to turn all the stuff on and enable it. So there's no real reason to change these preferences again unless you really want to. Now there is another cool little thing that's sort of hidden here that I want to show you guys before I move on.

If you notice right down here I've got a little link to what's called the Tag library editor. All the code hinting hints that we get, come from this library. And if I open this up, you can see that I get this nice little panel here with all the available HTML tags. Now this is actually a pretty good reference and a pretty good learning tool. For example I could open up the anchor tag here and I could see all of the different attributes that are available to me and there are parts of the specification for the anchor tag. Certainly the specifications are undergoing a lot of changes right now. What if HTML5 adds a tag? Well, all of a sudden, Dreamweaver no longer supports that specific tag.

So what if for example the group that's editing the HTML5 specification right now came up with a speech tag? Well, all I would need to do is go right up here to Tags, click on this and tell it that I want to create a New Tag. And when I create this new tag, I can come in and say okay I am going to place this in the HTML library, I am going to call it the speech tag and I want to make sure that it has an opening and closing tag. Now as soon as I do that, you'll notice that it adds it right here to the Tag Library. I can even go up and add Attributes to that particular tag if I want to. So I could do you know voice or something like that and now inside that tag, I've got those attributes.

So that's really cool. You can create your own Tag Library based on that and Dreamweaver will offer coding support for that particular tag and enable hints for that tag as well. Now if you're really a power user, you can also import what's known as a Document Type Definition Schema, DTTSchema. For example if you have a custom XML library, you can import that and Dreamweaver will go ahead and pick all the objects out of that and enable Code Hinting for your custom library. It's an amazingly powerful feature that few people take advantage of. So I just wanted to let you guys know that that is available in part of Dreamweaver.

All right! The final thing I am going to show you guys before we move on is the Code Rewriting preference. Now, again this is not something that you are going to see at all when you're actually authoring the code yourself. What you see here is the rules that Dreamweaver is going to follow when it's copying and pasting code say from another application, or the visual tools that you are going to be using in the Design view that place objects on the page. This controls how the underlying code behind those are written. So if you're not happy with the way Dreamweaver is creating your code, if you say want to fix any invalidly nested tags, or if you want to make sure that your special characters are encoded, you can go ahead and do that right here by setting those preferences.

Okay, I am just going to click OK, I know I didn't really change any of my Preferences, but to be honest with you, the default position of the Preferences in Dreamweaver are actually pretty good. But Dreamweaver does have a ton of Preferences that can control how your code is written and displayed and changing those Preferences can allow you to work exactly how you like to work and in the long run, that's going to make you more productive.

There are currently no FAQs about Dreamweaver CS6 Essential Training.

Share a link to this course
Please wait... Please wait...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Upgrade now

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Dreamweaver CS6 Essential Training.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Welcome to the redesigned course page.

We’ve moved some things around, and now you can



Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked

Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.