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

  • 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:

主站蜘蛛池模板: 肃南| 巨野县| 富源县| 方山县| 乐陵市| 拜泉县| 和田市| 兖州市| 通河县| 离岛区| 洪泽县| 广元市| 平凉市| 镇赉县| 邓州市| 湘潭市| 广东省| 彰化市| 安国市| 龙井市| 瑞安市| 龙山县| 石屏县| 和田市| 彩票| 庄浪县| 藁城市| 昌吉市| 曲水县| 称多县| 昭通市| 宾川县| 泸定县| 宁津县| 鹿泉市| 武胜县| 贵阳市| 十堰市| 滦平县| 大关县| 本溪市|