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

Setting code coloring

From: ColdFusion Builder Essential Training

Video: Setting code coloring

I find it pretty amazing just how much color-coding affects my ability to make sense of the code that I am looking at. And not just any code coloring will do. I have been using the same set of colors for my ColdFusion code for years. Never mind that I am partially colorblind as well. Let's take a dive into CFBuilder's vode voloring options, so you can get things just the way you like them. If you don't still have your preferences open, let's open up the preferences. Under the ColdFusion node and Editor Profiles, choose Editor and Colors. I am going to make this window a little bit bigger, so we can see everything that's going on, move all of our ugly scrollbars. There we go.

Setting code coloring

I find it pretty amazing just how much color-coding affects my ability to make sense of the code that I am looking at. And not just any code coloring will do. I have been using the same set of colors for my ColdFusion code for years. Never mind that I am partially colorblind as well. Let's take a dive into CFBuilder's vode voloring options, so you can get things just the way you like them. If you don't still have your preferences open, let's open up the preferences. Under the ColdFusion node and Editor Profiles, choose Editor and Colors. I am going to make this window a little bit bigger, so we can see everything that's going on, move all of our ugly scrollbars. There we go.

At the top, you can see we first have two options, which is to import and export a colorization file. If you are working in a team and you want everybody to have the same code coloring functions, you can get everything set up just the way you like. Then export a colorization file and they can import it on their end. Below this section, we have some Editor Options for basic coloring. These would overwrite the default Eclipse editor settings. To show you what those default Eclipse editor settings are, go over here to the filter and we will type Colors. Here, under General and Appearance, you can see we have Colors and Fonts.

If I click here, we can set up under the Basic section what gets used for the Content Assist background colors and foreground colors, what gets used for dialog fonts and our text editor fonts. Over here, we can also set code coloring for our CSS files, HTML files, JavaScript, script documents, and XML files. And you will notice that they all have the exact same dialogs. So, let's get back to our ColdFusion code and start playing with some of the code coloring here.

Under our Editor Options, if I choose to override Eclipse editor settings, it's going to show me what all of its current defaults are. For example, the background of our editor is white, our line highlight is a light gray, and the selection background is blue. So, if I click this item, it's going to open my system color picker, and I can choose whatever color I like and then just click OK to accept it. Let's collapse these options for now and take a look at the tokens on the bottom. The first section is keywords. You will notice we have a number of keywords here: Break, Case, Catch, but only the Function has any colors associated with it.

If you would like to add additional colors, just check the box next to a particular keyword, and then you can choose how you want that keyword to be formatted. I can click the little color block here. It will bring up my system color picker, and I can choose either Bold, Italic, or Underline for that particular item. When I choose a particular formatting, that little button will become highlighted. Let's collapse the Keyword section and take a look at the rest of the options. Here, we can set numeric and string literals to have different colors. Let me show you how those work. So, the numeric literal has this color here, the string literal has completely a different color.

I am going to click OK and we will take a look at our FileTest that we did before. Let's do . And then we will do . As you can see, the string literal and the numeric literal have completely different colors, and that is determined by those code coloring options. Let's go back to our Colors preferences and continue down the list. Collapse the literals. We can set the punctuators, such as equal, greater or greater than equal.

We can set codes for SQL comments and keywords. We can determine colors for attribute names and values and determine how whitespace gets colored. Now, I mentioned this in the previous video regarding Editor Profiles, but if you are moving from CF Eclipse or Dreamweaver, it's probably easiest to just go to the Editor Profiles and choose the profile you like best. I am going to choose CFEclipse, click Apply, and OK. You can see that my code coloring is now completely different. And there you have it.

My suggestion to you would be to start with one of the default Editor Profiles and then customize to your heart's content, using all of the color preferences.

Show transcript

This video is part of

Image for ColdFusion Builder Essential Training
ColdFusion Builder Essential Training

40 video lessons · 3864 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
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

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.


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.

Join now "Already a member? Log in

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 ColdFusion Builder 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
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.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

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.