Adobe Brackets 網頁編輯的新選擇

網頁的編輯有時候並不一定需要一套很大型的軟體,因為網頁畢竟是由HTML標籤結構串連CSS樣式表,再加上Javascript或ASP、PHP等程式語言構成,嚴格講完全是純文字化的文件,除了後端語言需要搭配伺服器服務之外,網頁就只是一個純文字文件,只要有心,哪怕是在餐廳都可以拿張餐巾紙來開始創作網頁(當然還要有些能力)。

因此網頁的編輯器,有時候並不一定需要用大型的所見即所得(What You See Is What You Get-WYSIWYG)軟體來建構(例如:Dreamweaver…等),其實近年來Dreamweaver也在積極的瘦身,把一些不常用多餘的功能給刪除,不過軟體還是具備有相當的份量也不易取得,所以業界會使用一些純文字的編輯器來編輯網頁,例如:Sublime Text、Atom、Light Table以及本篇文章的主角Brackets,這類的編輯器如果要拿來編輯網頁,應該需具備以下的特點:

  1. 具備多平台版本:網頁設計師有可能在Windows、Mac、Linux上工作,所以必須具備這些平台的版本。
  2. 支援網頁的多種語法:必須支援網頁上HTML、CSS、Javascript、jQuery、PHP、SQL…等多種語法。
  3. 擁有許多的外掛:除了自己單打獨鬥之外,外掛也是這樣的文字編輯器不可或缺的。
  4. 快速穩定:開啟快速、操作上穩定,也是他跟大型的WYSIWYG軟體重大區隔處。
  5. 簡單使用:不需花太多的時間去學習,因為畢竟是文字編輯器。

關於上述的四套文字編輯器:Sublime Text、Atom、Light Table和Brackets,國外網站「SitePoint」在2014年9月針對各平台、多個不同的項目做了一次比較,基本條件如下:

作業系統:

  • Windows 8.1
  • Mac OS X 10.8
  • Lubuntu 14.04

軟體版本:

  • Sublime Text 3
  • Atom 0.123
  • Brackets 0.42
  • Light Table 0.6.7

結果如下:

項目贏家
軟體介面Brackets
語法支援Sublime Text
易於使用Brackets
速度與穩定性Sublime Text
原始功能(未安裝外掛)Sublime Text
網頁特殊支援Brackets
外掛與擴充功能Sublime Text
自定和維護功能Atom
未來Atom
總評Sublime Text

Sublime Text拿下五個項目的贏家;接下來是Brackets的三項與Atom的兩項。

從上述的結果可以觀察的出來:

  1. 難怪Sublime Text是目前許多人偏好使用的網頁文字編輯器。
  2. Brackets也不容小覷。

尤其文中提到雖然在總評上Sublime Text是贏家,但Brackets也在積極的發展,甚至也支援非常多原Sublime Text的熱門外掛,該文章底下的回文裡面也有非常多的設計師說他們已經開始使用Brackets,所以這篇文章就跟大家分享一下Brackets的魅力。

Brackets是由Adobe開發的一個開放原碼的網頁編輯器,目前具有多國語言的支援也是免費下載使用,大家可以到Brackets的官方網頁下載與安裝,也具有跨平台的特色。

Brackets 官網截圖

Brackets 官網截圖

軟體安裝後的介面如下是英文版的介面

Brackets 安裝後畫面
Brackets 安裝後畫面

可以由Debug/Switch Language來切換為繁體中文的語言

Brackets 切換軟體語系
Brackets 切換軟體語系

下圖標示說明:

  1. 資料夾或檔案內容:開啟資料夾後可以看到一整個資料夾內的檔案和其他資料夾。
  2. 分割視窗切換:可以切換分割視窗的位置。
  3. 檔案內容撰寫:主要撰寫網頁程式的區域。
  4. 即時預覽:目前支援Chrome的即時預覽,撰寫網頁時即時預覽的內容會同步更新,不需再按存檔與預覽功能。
  5. 外掛與佈景主題安裝:安裝外掛和佈景主題來擴充程式功能與改變外觀。
Brackets 軟體介面說明
Brackets 軟體介面說明

接下來可以考慮先搜尋並安裝一些好用的外掛,我安裝的外掛有:

  • Autosave Files on Window Blur
  • Beautify
  • Brackets SASS
  • Brackets Snippets (by edc)
  • CodeOverview
  • Emmet
  • JSCompiler2
Brackets 安裝外掛
Brackets 安裝外掛

其中在Sublime Text中非常知名的Emmet在Brackets也有,因此我們可以在一份空白的文件輸入一個驚歎號後按下TAB鍵來產生HTML5的文件範本。

Brackets Emmet 外掛操作
Brackets Emmet 外掛操作

接下來就進入網頁開發的部分,當然在輸入標籤的時候會自動幫你產生封閉標籤,另外還有程式碼的提示。

Brackets CSS 樣式名稱提示
Brackets CSS 樣式名稱提示

另外還有屬性提示,以及快速編輯器(Ctrl+E)

Brackets CSS 顏色選擇
Brackets CSS 顏色選擇
Brackets CSS 顏色選取器
Brackets CSS 顏色選取器

如果你已經是使用Sublime Text的高手,相信Brackets的開發介面一定不陌生,可以先來看看自己常用的外掛是不是有支援,如果你習慣用所見即所得的軟體開發不妨試著改變看看,一定可以讓你網頁的功力有所提升,以下提供一些官方視訊教學供大家參考。

Brackets 簡介

即時預覽開發

Javascript除錯

You may also like...

35,698 Responses

  1. GregoryJough表示:

    Kamagra Kopen: KamagraKopen.pro – kamagra pillen kopen

  2. Bobbyaneno表示:

    пояснения мега ссылка

  3. AdrianCet表示:

    продолжить мега сайт

  4. TerryDus表示:

    https://kamagrakopen.pro/# kamagra jelly kopen

  5. Bobbyaneno表示:

    нажмите, чтобы подробнее мега сайт

  6. Dwayneseisa表示:

    KamagraKopen.pro kamagra pillen kopen Kamagra Kopen Online

  7. Bobbyaneno表示:

    нажмите здесь [url=https://megamoriartyc09o3seyehpnpnfnv7xo.lol]mega зеркала[/url]

  8. Bobbyaneno表示:

    узнать больше mega мориарти

  9. Bobbyaneno表示:

    здесь [url=https://megamoriartyc09o3seyehpnpnfnv7xo.lol/]mega зеркала[/url]

  10. Dwayneseisa表示:

    Generic100mgEasy Generic100mgEasy Cheap generic Viagra online

  11. Bobbyaneno表示:

    смотреть здесь [url=https://megamoriartyc09o3seyehpnpnfnv7xo.lol]мега сайт[/url]

  12. AdrianCet表示:

    страница мега мориарти

  13. WilliamNop表示:

    Generic100mgEasy: buy generic 100mg viagra online – Cheap generic Viagra

  14. Bobbyaneno表示:

    веб-сайт mega зеркала

  15. Bobbyaneno表示:

    нажмите, чтобы подробнее [url=https://megamoriartyc09o3seyehpnpnfnv7xo.lol]мега даркнет[/url]

  16. AdrianCet表示:

    ссылка на сайт [url=https://megamoriartyc09o3seyehpnpnfnv7xo.lol]mega мориарти[/url]

  17. AdrianCet表示:

    посетить сайт [url=https://megamoriartyc09o3seyehpnpnfnv7xo.lol]мега даркнет[/url]

  18. GregoryJough表示:

    buy generic 100mg viagra online: Generic100mgEasy – Cheap generic Viagra

  19. TerryDus表示:

    https://tadalafileasybuy.com/# Tadalafil Easy Buy

  20. Hiya, I am really glad I’ve found this info. Nowadays bloggers publish only about gossips and net and this is really frustrating. A good website with interesting content, that is what I need. Thanks for keeping this web-site, I’ll be visiting it. Do you do newsletters? Can not find it.

  21. Kennethslity表示:

    http://tadalafileasybuy.com/# cialis without a doctor prescription

  22. AdrianCet表示:

    посетить сайт [url=https://megamoriartyc09o3seyehpnpnfnv7xo.lol]мега сайт[/url]

  23. WilliamTaurl表示:

    Xavier completes thrilling comeback, Mount St. Mary’s advances as men’s First Four comes to a close
    changenow
    Wednesday saw the men’s First Four come to a close which means only one thing: the 64-team bracket is officially set following No. 11 Xavier’s thrilling come from behind win over No. 11 Texas and No. 16 Mount St. Mary’s victory over No. 16 American in Dayton, Ohio.

    The Musketeers trailed by as many as 13 points, but their offense came alive in the second half behind guard Marcus Foster and forward Zach Freemantle to down the Longhorns 86-80.

    The senior Foster scored a team-high 22 points while Freemantle, on his way to 15 points, threw down a dunk with a second left to seal the comeback win and ignite the fans at UD Arena, which is just over 50 miles away from campus in Cincinnati, Ohio.

    With just under four minutes remaining, Xavier went on an 8-2 run to take a 78-74 lead, their first since the early going of the first half.

    Musketeers head coach Sean Miller crowned Wednesday’s game as “one of the best” he’s been a part of.

    “I thought we were dead in the water two different times,” Miller told the truTV broadcast after the game. “But that’s the one thing about our team — the resiliency of our group has always won out for us. Just when you thought we weren’t gonna make the tournament, we kept winning. Even in this game, just when you’re like, ‘It’s not gonna work out,’ we have a funny way of staying with it.”

    The Longhorns did not go down without a fight as guard Tre Johnson scored a game-high 23 points in the loss.

    Xavier will face No. 6 Illinois in the first round on Friday at the Fiserv Forum in Milwaukee.

  24. AdrianCet表示:

    Продолжение [url=https://megamoriartyc09o3seyehpnpnfnv7xo.lol/]mega мориарти[/url]

  25. Williamevads表示:

    A librarian ran off with a yacht captain in the summer of 1968. It was the start of an incredible love story
    metamask wallet
    The first time Beverly Carriveau saw Bob Parsons, she felt like a “thunderbolt” passed between them.

    “This man stepped out of a taxi, and we both just stared at each other,” Beverly tells CNN Travel today. “You have to remember, this is the ‘60s. Girls didn’t stare at men. But it was a thunderbolt.”

    It was June 1968. Beverly was a 23-year-old Canadian university librarian on vacation in Mazatlan, Mexico, with a good friend in tow.

    Beverly had arrived in Mazatlan that morning. She’d been blown away by the Pacific Ocean views, the colorful 19th-century buildings, the palm trees.

    Now, Beverly was browsing the hotel gift store, admiring a pair of earrings, when she looked up and spotted the man getting out of the taxi. The gift shop was facing the parking lot, and there he was.

    “I was riveted,” says Beverly. “He was tall, handsome…”

    Eventually, Beverly tore away her gaze, bought the earrings and dashed out of the store.

    “We locked eyes so long, I was embarrassed,” she says.

    No words had passed between them. They hadn’t even smiled at each other. But Beverly felt like she’d revealed something of herself. She felt like something had happened, but she couldn’t describe it.
    Beverly rushed to meet her friend, still feeling flustered. Over dinner in the hotel restaurant, Beverly confided in her friend about the “thunderbolt” moment.

    “I told my girlfriend, ‘Something just happened to me. I stared at this man, and I couldn’t help myself.’”

    Then, the server approached Beverly’s table.

    “He said, ‘I have some wine for you, from a man over there.’”

    The waiter was holding a bottle of white wine, indicating at the bar, which was packed with people.

    As a rule, Beverly avoided accepting drinks from men in bars. She never felt especially comfortable with the power dynamic — plus, she had a long-term partner back in Canada.

    “I had a serious boyfriend at home and thought my life was on course,” she says.

  26. GregoryJough表示:

    Generic Tadalafil 20mg price: cialis without a doctor prescription – Cialis without a doctor prescription

  27. visit here表示:

    Wonderful article! We are linking to this great article on our site. Keep up the good writing.

  28. MarvinDok表示:

    The world’s largest architectural model captures New York City in the ’90s
    aerodrome finance
    The Empire State building stands approximately 15 inches tall, whereas the Statue of Liberty measures at just under two inches without its base. At this scale, even ants would be too big to represent people in the streets below.

    These lifelike miniatures of iconic landmarks can be found on the Panorama — which, at 9,335 square feet, is the largest model of New York City, meticulously hand-built at a scale of 1:1,200. The sprawling model sits in its own room at the Queens Museum, where it was first installed in the 1960s, softly rotating between day and night lighting as visitors on glass walkways are given a bird’s eye view of all five boroughs of the city.

    To mark the model’s 60th anniversary, which was celebrated last year, the museum has published a new book offering a behind-the-scenes look at how the Panorama was made. Original footage of the last major update to the model, completed in 1992, has also gone on show at the museum as part of a 12-minute video that features interviews with some of the renovators.

    The Queens Museum’s assistant director of archives and collections, Lynn Maliszewski, who took CNN on a visit of the Panorama in early March, said she hopes the book and video will help to draw more visitors and attention to the copious amount of labor — over 100 full-time workers, from July 1961 to April 1964 — that went into building the model.

    “Sometimes when I walk in here, I get goosebumps, because this is so representative of dreams and hopes and family and struggle and despair and excitement… every piece of the spectrum of human emotion is here (in New York) happening at the same time,” said Maliszewski. “It shows us things that you can’t get when you’re on the ground.”
    Original purpose
    The Panorama was originally built for the 1964 New York World’s Fair, then the largest international exhibition in the US, aimed at spotlighting the city’s innovation. The fair was overseen by Robert Moses, the influential and notorious urban planner whose highway projects displaced hundreds of thousands New Yorkers. When Moses commissioned the Panorama, which had parts that could be removed and redesigned to determine new traffic patterns and neighborhood designs, he saw an opportunity to use it as a city planning tool.

    Originally built and revised with a margin of error under 1%, the model was updated multiple times before the 1990s, though it is now frozen in time. According to Maliszewski, it cost over $672,000 to make in 1964 ($6.8 million in today’s money) and nearly $2 million (about $4.5 million today) was spent when it was last revised in 1992.

  29. WilliamNop表示:

    Sildenafil 100mg price: viagra canada – Generic 100mg Easy

  30. TerryDus表示:

    https://generic100mgeasy.com/# buy generic 100mg viagra online

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。