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

  • Mastering CSS
  • Rich Finelli
  • 268字
  • 2021-07-08 09:45:47

Text editors

HTML, CSS, and JavaScript can be written in any text-editing application. This is one of the great things about the three core web languages. The problem is that writing HTML, CSS, and JavaScript is extremely error-prone. For CSS, commas, semicolons, and curly braces need to be typed in the right spots. A specific syntax needs to be adhered to perfectly in most cases, else your page won't render as expected. The following is an illustration of TextEdit for Mac. It's similar in nature to Notepad for Windows, in that it doesn't have many features that make writing code easy:

Let's write some code in TextEdit anyway. We start with the HTML doc type. Post this, we add an HTML opening and closing tag and then the head tag and inside that the title tag. You'll soon realize that it's a pretty tedious process, that is, writing code in TextEdit. We can write code here, but we're really getting nothing out of it, no syntax highlighting, and no other assistance whatsoever:

Luckily, a good text editor can really do the hard work for you. In this chapter, we'll look at such a text editor, namely Sublime Text 3, and some of the nice features it has to help you write HTML and CSS even better. First, we'll look at snippets, then we'll look at syntax highlighting, followed by code suggestions and multiple cursors. Sublime Text 3 is my text editor of choice as it is fast and easy to use. One of the things I love is how easy and natural it allows me to write code.

主站蜘蛛池模板: 焦作市| 和静县| 顺平县| 博白县| 鄢陵县| 陵川县| 陆丰市| 海南省| 朝阳县| 桦甸市| 福海县| 萍乡市| 临沂市| 南投县| 白河县| 八宿县| 武宣县| 太仓市| 吴堡县| 花垣县| 启东市| 安多县| 沂源县| 库尔勒市| 岳池县| 木兰县| 图木舒克市| 洮南市| 巧家县| 离岛区| 麟游县| 顺昌县| 蓝田县| 禄劝| 澳门| 翁牛特旗| 洪湖市| 江城| 中阳县| 万年县| 盐边县|