官术网_书友最值得收藏!

  • Mastering CSS
  • Rich Finelli
  • 132字
  • 2021-07-08 09:45:49

Syntax highlighting

Let's switch over to our CSS for a second. Another feature that will make our job much easier is syntax highlighting. Notice how the rule sets all follow a color scheme. The selectors are red, properties are blue, and the values are purple. They will start getting embedded into your subconscious mind:

What Sublime Text does for you is it subtly points out your mistakes. I often type in a semicolon where a colon is required. This will cause your CSS to not work. Syntax highlighting, though, tells me that something is wrong because, as shown in the following screenshot, the color scheme changes:

It's easy to spot a color difference but difficult to see the difference between a colon and a semicolon if you are not looking for it:

主站蜘蛛池模板: 宁阳县| 广安市| 桦川县| 云龙县| 旺苍县| 兰溪市| 静乐县| 内丘县| 长白| 灵寿县| 象州县| 顺昌县| 海兴县| 普洱| 碌曲县| 盐亭县| 托克逊县| 沂水县| 中卫市| 河南省| 色达县| 梁山县| 陵川县| 金寨县| 富川| 商洛市| 鄂托克前旗| 建湖县| 兴义市| 柏乡县| 镇原县| 周口市| 遵义市| 伊春市| 抚顺市| 兴文县| 子长县| 寿阳县| 彭阳县| 隆昌县| 富锦市|