- 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:
推薦閱讀
- Vue 3移動(dòng)Web開發(fā)與性能調(diào)優(yōu)實(shí)戰(zhàn)
- SpringMVC+MyBatis快速開發(fā)與項(xiàng)目實(shí)戰(zhàn)
- C語言程序設(shè)計(jì)基礎(chǔ)與實(shí)驗(yàn)指導(dǎo)
- Oracle數(shù)據(jù)庫從入門到運(yùn)維實(shí)戰(zhàn)
- 量化金融R語言高級(jí)教程
- Hands-On Automation Testing with Java for Beginners
- Instant Ext.NET Application Development
- Mastering ROS for Robotics Programming
- Kotlin極簡教程
- 超簡單:Photoshop+JavaScript+Python智能修圖與圖像自動(dòng)化處理
- Java程序設(shè)計(jì)實(shí)用教程(第2版)
- Web前端開發(fā)最佳實(shí)踐
- Getting Started with Web Components
- Socket.IO Cookbook
- 劍指大數(shù)據(jù):企業(yè)級(jí)電商數(shù)據(jù)倉庫項(xiàng)目實(shí)戰(zhàn)(精華版)