- 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:
推薦閱讀
- Python爬蟲開發與項目實戰
- Access 2010數據庫基礎與應用項目式教程(第3版)
- Full-Stack Vue.js 2 and Laravel 5
- JavaScript從入門到精通(第3版)
- Mastering Ext JS
- 從零開始學Linux編程
- Kotlin開發教程(全2冊)
- Django實戰:Python Web典型模塊與項目開發
- Learning JavaScript Data Structures and Algorithms(Second Edition)
- Application Development with Parse using iOS SDK
- PHP項目開發全程實錄(第4版)
- UI動效設計從入門到精通
- Data Manipulation with R(Second Edition)
- Getting Started with Windows Server Security
- Python人工智能項目實戰