New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Working with outlines and syntax checking

From: ColdFusion Builder Essential Training

Video: Working with outlines and syntax checking

The Outline view is something you'll constantly reference as you go through files. Unfortunately, it can be a bit unwieldy to see every tag on a page in one big outline. You can change how much the Outline view displays in the Outline preferences. So, to show you what I mean, let's first open up a rather long file. Under the cfcs directory here, let's open up the ARTService. This file isn't terribly long. It's only about 118 lines, but if you look at the Outline, almost every single one of those 118 lines is reflected in the Outline, including comments and returns and basically a bunch of stuff that you really don't need to see in order to be able to navigate this file.

Working with outlines and syntax checking

The Outline view is something you'll constantly reference as you go through files. Unfortunately, it can be a bit unwieldy to see every tag on a page in one big outline. You can change how much the Outline view displays in the Outline preferences. So, to show you what I mean, let's first open up a rather long file. Under the cfcs directory here, let's open up the ARTService. This file isn't terribly long. It's only about 118 lines, but if you look at the Outline, almost every single one of those 118 lines is reflected in the Outline, including comments and returns and basically a bunch of stuff that you really don't need to see in order to be able to navigate this file.

So, let's go to our preferences and change how much the Outline shows us. If I click on the Outline node here in the Preferences, by default, it's going to show all tags. However, I can choose Show selected tags and then I can add and remove what I want to show in the Outline. Let's click Add and then I can just type the name of the CFML tag. Let's say I want to see cfif tags. Now I can enter in a comma separated list, if I want to add more than one at a time.

Click OK. Let's click Apply and you can see that my Outline view immediately changed. Now I'm only seeing my cffunction tags, because apparently there are no cfif tags in this file. In my opinion, that makes the Outline view a whole lot easier to deal with. Now to wrap up our Editor preferences, let's take a look at the Syntax Checking options. This page is really easy to deal with. We only have two options: whether we want to enable syntax checking and whether we want to display those syntax errors only on a file save.

So, the syntax checking looks a lot like spellchecking in Microsoft Word or other Office applications. Let's click OK and take a look at what that looks like. Let's open up our FileTest.cfm file again and let's cause a problem. Let's enter in a cffunction tag and I'm missing all the arguments on my cffunction tag. So, you'll notice that has these dots underneath it. It also has an X over here in the gutter next to my line numbers. If I hold my mouse over that X, we can see that an attribute name is required.

So, let's go back to my cffunction tag. I'll put name="myFunction". Now the X has gone away. If I go back to my Preferences and select to display syntax errors only on file save, I'll click OK. I'm going to remove my name argument. Now when I save my file, it's showing me the error is there again. So, I like this to be on all the time, so I can see problems as I go through my code. So, I'm going to uncheck Display Syntax Errors Only on File Save.

We'll click Apply and OK and we're back to the way I like it. So, you now know everything there is to know about customizing your editor in CFBuilder. As I've said in previous videos, take the time to get everything just the way you want it. Trust me, you won't regret it.

Show transcript

This video is part of

Image for ColdFusion Builder Essential Training
ColdFusion Builder Essential Training

40 video lessons · 3837 viewers

Daniel Short
Author

 
Expand all | Collapse all
  1. 7m 48s
    1. Welcome
      59s
    2. Installing ColdFusion Builder
      2m 20s
    3. Installing ColdFusion Builder as a plug-in
      3m 18s
    4. Using the exercise files
      1m 11s
  2. 17m 42s
    1. Workspace overview
      2m 25s
    2. Organizing your workspace
      6m 19s
    3. Adding and selecting workspaces
      2m 53s
    4. Installing and managing plug-ins
      6m 5s
  3. 12m 12s
    1. Creating projects
      2m 11s
    2. Importing projects
      2m 48s
    3. Creating project working sets
      2m 23s
    4. Managing projects
      2m 22s
    5. Linking folders
      2m 28s
  4. 23m 2s
    1. Configuring and managing ColdFusion servers
      6m 26s
    2. Using the Services Browser
      4m 15s
    3. Using RDS Dataview and Fileview
      4m 52s
    4. Using FTP
      7m 29s
  5. 18m 10s
    1. Creating editor profiles
      2m 6s
    2. Using Code Assist
      5m 43s
    3. Setting code coloring
      4m 5s
    4. Using shortcut keys
      3m 5s
    5. Working with outlines and syntax checking
      3m 11s
  6. 37m 40s
    1. Using code completion
      7m 25s
    2. Using snippets
      9m 23s
    3. Using SQL editing and the Query Viewer
      5m 55s
    4. Working with components
      7m 27s
    5. Working with variable mapping
      2m 14s
    6. Navigating code and documents
      5m 16s
  7. 13m 12s
    1. Getting set up
      3m 50s
    2. Using the ColdFusion debugger
      5m 37s
    3. Watching logs with Tailview
      3m 45s
  8. 13m 8s
    1. Installing extensions
      4m 5s
    2. Using the CFC Generator extension for ColdFusion 8
      4m 52s
    3. Using the CFC Generator extension for ColdFusion ORM
      4m 11s
  9. 34m 5s
    1. Building a simple contact form extension
      3m 42s
    2. Creating user interfaces
      8m 55s
    3. Packaging the extension
      3m 55s
    4. Building the handler
      8m 10s
    5. Using the Builder extension
      9m 23s
  10. 25s
    1. Goodbye
      25s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold

Are you sure you want to delete this note?

No

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.