- 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:
推薦閱讀
- Web程序設計及應用
- Data Visualization with D3 4.x Cookbook(Second Edition)
- 軟件安全技術
- 深度實踐OpenStack:基于Python的OpenStack組件開發
- 流量的秘密:Google Analytics網站分析與優化技巧(第2版)
- UML和模式應用(原書第3版)
- Java異步編程實戰
- Vue.js 3.0源碼解析(微課視頻版)
- C語言程序設計實踐教程
- Android開發:從0到1 (清華開發者書庫)
- 微服務架構深度解析:原理、實踐與進階
- QGIS Python Programming Cookbook(Second Edition)
- 運維前線:一線運維專家的運維方法、技巧與實踐
- SQL Server 2008中文版項目教程(第3版)
- Simulation for Data Science with R