Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
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.
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.
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.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 98139 Viewers
61 Video lessons · 85445 Viewers
71 Video lessons · 69415 Viewers
56 Video lessons · 101769 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
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.
Your file was successfully uploaded.