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...

37,545 Responses

  1. Prokarniz表示:

    Сшить шторы на заказ по индивидуальному проекту, лучшие цены.
    Премиальные шторы на заказ, с гарантией качества.
    Создание штор мечты, под ваш интерьер.
    Шторы на заказ с доставкой, подчеркивающие ваш стиль.
    Идеальные шторы на заказ для гостиной, под ваш вкус.
    Индивидуальный дизайн штор, по вашим желанием.
    Создание штор на заказ из натуральных тканей, используя современные технологии.
    Модные шторы на заказ, от профессионалов.
    Классические шторы на заказ, с учетом светотени.
    Создание штор для любого типа окна, с возможностью индивидуального дизайна.
    Изготовление штор на заказ на любой вкус, под любой интерьер.
    Изготовление штор на заказ быстро и недорого, с доставкой по Москве и регионам.
    Элегантные шторы на заказ, от ведущих дизайнеров.
    Дизайнерские шторы на заказ, с использованием лучших тканей.
    Пошив штор по индивидуальному дизайну, по мере необходимости.
    Высококачественные шторы на заказ, по желанию клиента.
    сшить шторы на заказ сшить шторы на заказ . Prokarniz

  2. Ronaldbet表示:

    casino olympe casino olympe

  3. VictorVal表示:

    olympe casino avis: olympe – olympe casino avis

  4. Качественный пошив штор на заказ
    пошив штор на заказ пошив штор на заказ .

  5. Gynoml表示:

    purchase levaquin sale – buy ranitidine 150mg pills buy zantac 150mg pill

  6. VictorVal表示:

    casino olympe: olympe casino en ligne – olympe casino avis

  7. AlbertShund表示:

    https://olympecasino.pro/# olympe casino avis

  8. Gregoryron表示:

    olympe casino: olympe casino en ligne – olympe casino cresus

  9. Ronaldbet表示:

    olympe casino en ligne olympe casino en ligne

  10. VictorVal表示:

    olympe casino cresus: olympe – olympe casino avis

  11. Ronaldbet表示:

    casino olympe casino olympe

  12. VictorVal表示:

    olympe: olympe casino – olympe casino avis

  13. WilliamWhesy表示:

    “You have a government that is reckless about what is going to happen to Guyana,” said Melinda Janki, an international lawyer in Guyana who is handling several lawsuits against Exxon. It’s pursuing “a supposed course of development that is actually backward and destructive,” she told CNN.
    kelp dao
    And while plenty of Guyanese people welcome the new oil industry, some say Guyana’s startling economic statistics do not reflect a real-world prosperity for ordinary people, many of whom are struggling with the higher prices accompanying the oil boom. Inflation rose 6.6% in 2023, with prices of some foods shooting up much more rapidly.

    “Since the oil extraction began in Guyana, we have noticed that our cost of living has gone sky high,” said Wintress White, of Red Thread, a non-profit that focuses on improving living conditions for Guyanese women. “The money is not trickling down to the masses,” she told CNN.

    CNN contacted President Ali, the Ministry of Natural Resources and the Ministry of Finance for comment but received no response.
    Guyana, a former Dutch then British colony which gained independence in 1966, is one of only a handful of countries that is a “carbon sink,” meaning it stores more planet-heating pollution than it produces. This is due to its vast rainforest; trees remove carbon dioxide from the atmosphere as they grow.

    The country has protected its biodiversity where others have destroyed theirs, President Ali said in a BBC interview last year. In 2009, the country signed an agreement with Norway, which promised Guyana more than $250 million to preserve its 18.5 million hectares, or nearly 46 million acres, of forests.

    Ali insists the country can balance climate leadership and fossil fuel exploitation. The new oil wealth will allow Guayana to develop, including building climate adaptations such as sea walls, he has said. He has also pointed to the continued failures of wealthy countries, already grown rich on their own fossil fuels, to help poorer countries with climate finance.

    But there are concerns Guyana could fall victim to the “resource curse,” in which vast, new wealth ?can actually make life worse for those who live there.

  14. VictorVal表示:

    olympe casino cresus: olympe casino avis – olympe

  15. Allanref表示:

    A tiny rainforest country is growing into a petrostate. A US oil company could reap the biggest rewards
    kyberswap
    Guyana’s destiny changed in 2015. US fossil fuel giant Exxon discovered nearly 11 billion barrels of oil in the deep water off the coast of this tiny, rainforested country.

    It was one of the most spectacular oil discoveries of recent decades. By 2019, Exxon and its partners, US oil company Hess and China-headquartered CNOOC, had started producing the fossil fuel.? They now pump around 650,000 barrels of oil a day, with plans to more than double this to 1.3 million by 2027.

    Guyana now has the world’s highest expected oil production growth through 2035.

    This country — sandwiched between Brazil, Venezuela and Suriname — has been hailed as a climate champion for the lush, well-preserved forests that carpet nearly 90% of its land. It is on the path to becoming a petrostate at the same time as the impacts of the fossil fuel-driven climate crisis escalate.

    While the government says environmental protection and an oil industry can go hand-in-hand, and low-income countries must be allowed to exploit their own resources, critics say it’s a dangerous path in a warming world, and the benefits may ultimately skew toward Exxon — not Guyana.
    Since Exxon’s transformative discovery, Guyana’s government has tightly embraced oil as a route to prosperity. In December 2019, then-President David Granger said in a speech, “petroleum resources will be utilized to provide the good life for all … Every Guyanese will benefit.”

    It’s a narrative that has continued under current President Mohamed Irfaan Ali, who says new oil wealth will allow Guyana to develop better infrastructure, healthcare and climate adaptation.

  16. Gregoryron表示:

    olympe casino: casino olympe – olympe casino avis

  17. Ronaldbet表示:

    olympe casino olympe casino avis

  18. Williamwhogs表示:

    casino olympe: olympe casino – olympe casino en ligne

  19. VictorVal表示:

    olympe casino cresus: olympe casino cresus – olympe casino

  20. Gregoryron表示:

    olympe casino en ligne: olympe casino en ligne – casino olympe

  21. Billynot表示:

    Mist and microlightning
    solflare
    To recreate a scenario that may have produced Earth’s first organic molecules, researchers built upon experiments from 1953 when American chemists Stanley Miller and Harold Urey concocted a gas mixture mimicking the atmosphere of ancient Earth. Miller and Urey combined ammonia (NH3), methane (CH4), hydrogen (H2) and water, enclosed their “atmosphere” inside a glass sphere and jolted it with electricity, producing simple amino acids containing carbon and nitrogen. The Miller-Urey experiment, as it is now known, supported the scientific theory of abiogenesis: that life could emerge from nonliving molecules.
    For the new study, scientists revisited the 1953 experiments but directed their attention toward electrical activity on a smaller scale, said senior study author Dr. Richard Zare, the Marguerite Blake Wilbur Professor of Natural Science and professor of chemistry at Stanford University in California. Zare and his colleagues looked at electricity exchange between charged water droplets measuring between 1 micron and 20 microns in diameter. (The width of a human hair is 100 microns.)

    “The big droplets are positively charged. The little droplets are negatively charged,” Zare told CNN. “When droplets that have opposite charges are close together, electrons can jump from the negatively charged droplet to the positively charged droplet.”
    The researchers mixed ammonia, carbon dioxide, methane and nitrogen in a glass bulb, then sprayed the gases with water mist, using a high-speed camera to capture faint flashes of microlightning in the vapor. When they examined the bulb’s contents, they found organic molecules with carbon-nitrogen bonds. These included the amino acid glycine and uracil, a nucleotide base in RNA.

    “We discovered no new chemistry; we have actually reproduced all the chemistry that Miller and Urey did in 1953,” Zare said. Nor did the team discover new physics, he added — the experiments were based on known principles of electrostatics.

    “What we have done, for the first time, is we have seen that little droplets, when they’re formed from water, actually emit light and get this spark,” Zare said. “That’s new. And that spark causes all types of chemical transformations.”

  22. Williamwhogs表示:

    casino olympe: casino olympe – casino olympe

  23. Ronaldbet表示:

    olympe casino olympe casino avis

  24. Mcfxbe表示:

    nexium 20mg ca – order sumatriptan 50mg pills buy imitrex 50mg

  25. AnthonyFat表示:

    Scientists redid an experiment that showed how life on Earth could have started. They found a new possibility
    safepal wallet
    In the 1931 movie “Frankenstein,” Dr. Henry Frankenstein howling his triumph was an electrifying moment in more ways than one. As massive bolts of lightning and energy crackled, Frankenstein’s monster stirred on a laboratory table, its corpse brought to life by the power of electricity.

    Electrical energy may also have sparked the beginnings of life on Earth billions of years ago, though with a bit less scenery-chewing than that classic film scene.

    Earth is around 4.5 billion years old, and the oldest direct fossil evidence of ancient life — stromatolites, or microscopic organisms preserved in layers known as microbial mats — is about 3.5 billion years old. However, some scientists suspect life originated even earlier, emerging from accumulated organic molecules in primitive bodies of water, a mixture sometimes referred to as primordial soup.

    But where did that organic material come from in the first place? Researchers decades ago proposed that lightning caused chemical reactions in ancient Earth’s oceans and spontaneously produced the organic molecules.

    Now, new research published March 14 in the journal Science Advances suggests that fizzes of barely visible “microlightning,” generated between charged droplets of water mist, could have been potent enough to cook up amino acids from inorganic material. Amino acids — organic molecules that combine to form proteins — are life’s most basic building blocks and would have been the first step toward the evolution of life.

  26. Carlospoogy表示:

    Mindful wellness challenges
    If you’re the type of person who thrives on challenges and pushing your limits, this doesn’t mean you need to shy away from wellness challenges altogether. But before diving in, take a step back and ask yourself if you’re pursuing the challenge for the right reasons, McGregor said.
    velodrome finance
    Some people want to try these challenges because they believe something is missing from their life, and they’re looking to attain “worth” or receive validation, McGregor noted.

    A good way to assess your motivation is by considering whether the challenge will benefit your health or if it’s about showcasing your accomplishments on social media or some other reason.

    Before trying any new trend, make sure you have the foundation to handle it and be aware of any potential risks, McGregor said.

    For casual runners, this might mean signing up for a 5K but building your endurance gradually while incorporating other strength training exercises into your routine. For more intense challenges, such as a marathon, McGregor encourages people to consult with professionals or a coach who can monitor your progress and condition along the way.

    Focusing on sustainable habits
    Both McGregor and Curran emphasize the importance of fostering sustainable health habits before embarking on more extreme challenges.

    Rather than chasing the idea of being “healthy,” McGregor suggests focusing on actual healthful behaviors and starting small.

    If you’re a highly sedentary person and want to add more movement to your day, try doing lunges while brushing your teeth or taking short walks throughout your typical routine.

  27. I have observed that in the world these days, video games are the latest rage with children of all ages. Often times it may be impossible to drag your kids away from the games. If you want the very best of both worlds, there are lots of educational activities for kids. Interesting post.

  28. VictorVal表示:

    olympe casino cresus: olympe casino avis – olympe

  29. RobertanAew表示:

    Family affair
    rhino fi
    Americans Brittany and Blake Bowen had never even been to Ecuador when in 2021 they decided to move to the South American country with their four children.

    Tired of “long commutes and never enough money” in the US, the Bowens say they love their new Ecuadorian life. “We hope that maybe we’ll have grandkids here one day.”

    Erik and Erin Eagleman moved to Switzerland from Wisconsin with their three children in 2023.

    “It feels safe here,” they tell CNN of their new outdoorsy lifestyle in Basel, close to the borders with France and Germany. Their youngest daughter even walks to elementary school by herself.

    For adventures with your own family, be it weekend breaks or something longer-term, our partners at CNN Underscored, a product review and recommendations guide owned by CNN, have this roundup of the best kids’ luggage sets and bags.

    Starry, starry nights
    For close to 100 years, Michelin stars have been a sign of culinary excellence, awarded only to the great and good.

    Georges Blanc, the world’s longest-standing Michelin-starred restaurant, has boasted a three-star rating since 1981, but this month the Michelin guide announced that the restaurant in eastern France was losing a star.

    More culinary reputations were enhanced this week, when Asia’s 50 best restaurants for 2025 were revealed. The winner was a Bangkok restaurant which is no stranger to garlands, while second and third place went to two Hong Kong eateries.

    You don’t need to go to a heaving metropolis for excellent food, however. A 200-year-old cottage on a remote stretch of Ireland’s Atlantic coast has been given a Michelin star. At the time of awarding, Michelin called it “surely the most rural” of its newest winners.

  30. Williamwhogs表示:

    olympe casino en ligne: olympe casino avis – olympe casino

發佈留言

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