search
HomeWeb Front-endHTML TutorialAtom editor tossing notes_(10)CSScomb enhanced version [CSS/LESS/SASS]_html/css_WEB-ITnose

What is CSScomb

The official website has only one description:

Makes your code beautiful(make your code more beautiful)

To be more simple Talk:

CSScomb is used to typeset CSS code... It can be said to be a formatting plug-in, relying on nodejs

to obtain CSScomb? This is not today’s topic

Official Website: CSScomb

  • Supports many editors, such as Sublime/Atom/brackets, etc.
  • Third-party CSScomb? This is today’s topic

    Yesterday I wrote an article about CSS3...I found that the code was a bit confusing...the manual typesetting was a bit...so I went to the atom plug-in library to look for csscomb

  • Atom -> settings -> install -> csscomb
  • Let me go, there are several CSScomb plug-in packages... Look at the pictures (the functions of the three blue circles are basically the same, the first one is official,,, today’s protagonist is yellow)

    atom-css-comb

    Features

  • Support formatting CSS/LESS/SASS
  • Support Custom format
  • Built-in three typeset styles (Yandex/CSScomb/zen)
  • Yandex’s CSS specification... I searched the engine... It seems very powerful... but it’s not suitable I
  • CSScomb layout style
  • zen (predecessor of Emmet)
  • Basic use

  • There are two default shortcut keys [You can also use the mouse to click the plug-in call]

  • ctrl alt c[conflict]
  • ctrl alt shift c[conflict]
  • Switch the layout style (Ready-made configs), see description and picture

  • Packages -> Css comb -> settings
  • Default shortcut key parameters

  • 'atom-text-editor':  'ctrl-alt-c':'css-comb:comb'

    Advanced use

    Aimed at the user group: Friends who like to toss and have their own style, This is just for display. You can refer to the official documents for customization

    See the above common config and select custom config [Edit config file],
    Enter the custom parameter page, the format is written in JSON.

    {    "help": "About options https://github.com/csscomb/csscomb.js/blob/master/doc/options.md",    "exclude": ["node_modules/**"],    "verbose": true,    "always-semicolon": true,    "block-indent": " ",    "colon-space": ["", " "],    "color-case": "lower",    "color-shorthand": true,    "element-case": "lower",    "eof-newline": true,    "leading-zero": false,    "quotes": "single",    "remove-empty-rulesets": true,    "rule-indent": " ",    "stick-brace": "\n",    "strip-spaces": true,    "unitless-zero": true,    "vendor-prefix-align": true }

    Full list of custom parameters: Click me click me click me

    Statement
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    HTML Internationalization and LocalizationHTML Internationalization and LocalizationJul 31, 2025 pm 12:08 PM

    Internationalization and localization require setting language attributes, using UTF-8 encoding, dynamically formatting content, and managing multilingual resources. 1. Set lang and xml:lang attributes to identify the page language; 2. Use UTF-8 encoding to avoid garbled code and ensure the server configuration is correct; 3. Use Intl objects or framework plug-ins to process related formats such as dates, currency, etc.; 4. Store multi-language content through JSON files, load and provide switching functions according to user preferences.

    How to use the HTML dir attribute for text directionHow to use the HTML dir attribute for text directionJul 31, 2025 pm 12:06 PM

    TheHTMLdirattributespecifiestextdirectionforproperrenderingofRTLlanguageslikeArabicorHebrew.1.Usedir="rtl"onthetagtosettheentiredocument’sdirection.2.Applydir="ltr",dir="rtl",ordir="auto"tospecificelementssucha

    How to use the details and summary tags for an HTML accordionHow to use the details and summary tags for an HTML accordionJul 31, 2025 pm 12:04 PM

    Use and tags to create accessible drop-down accordion effects without JavaScript; 2. Default content collapses, add open attributes to expand by default; 3. Custom styles can be customized through CSS, such as borders, backgrounds and custom arrows; 4. Multiple elements can be combined into a multi-panel accordion, which supports multiple openings by default, and JavaScript control is required; 5. Natively support screen readers and keyboard navigation, with strong semantics, and can achieve barrier-free access without ARIA. It is a lightweight, reliable and easy-to-implement solution.

    Optimizing HTML for Web VitalsOptimizing HTML for Web VitalsJul 31, 2025 pm 12:02 PM

    Improve the core performance indicators of web pages (WebVitals) should start with optimizing the HTML structure, which includes the following points: 1. Reduce unnecessary DOM nodes, avoid excessive nesting, clean up discarded code, and use lightweight tags to shorten the parsing and rendering time; 2. Optimize the key rendering path, use key CSS inline, delay loading non-first-screen resources, and reasonably use async and defer to load scripts to speed up the first rendering; 3. Improve the interaction response speed, load key scripts as soon as possible, avoid a large number of inline scripts, and add loading="eager" to interactive elements; 4. Reasonably set meta tags and semantic structures, and use correct HTML tags and viewport settings.

    What are , , and  used for?What are , , and used for?Jul 31, 2025 pm 12:01 PM

    isusedformajornavigationlinkslikemenusorbreadcrumbs;2.containsintroductorycontentsuchastitles,logos,ornavigation;3.holdsclosinginformationlikecopyrights,contactdetails,orsitemaps;thesesemanticHTML5elementsimproveaccessibility,SEO,andcodereadabilityby

    What is the HTML mark tag for highlighting textWhat is the HTML mark tag for highlighting textJul 31, 2025 am 11:55 AM

    TheHTMLtagisusedtosemanticallyhighlighttextforreferenceorrelevance,withadefaultyellowbackgroundthatcanbecustomizedviaCSS.1.Itprovidesmeaning,indicatingimportanceorrelevanceincontext,suchasinsearchresultsorkeyterms.2.Unlike,itaddssemanticvalue,aidingc

    How to create a simple accordion in pure HTML?How to create a simple accordion in pure HTML?Jul 31, 2025 am 11:54 AM

    Yes, you can create basic accordion effects with only HTML, which can be achieved through usage and tags; 1. Use as expandable container; 2. Use as clickable title; 3. Content is hidden by default and expand after clicking; 4. It can beautify styles with simple CSS; 5. No JavaScript required, semantic and highly accessible, and supports it in modern browsers, except for IE.

    Using HTML `nav` for Primary and Secondary NavigationUsing HTML `nav` for Primary and Secondary NavigationJul 31, 2025 am 11:52 AM

    In web development, using HTML tags can effectively organize primary navigation and secondary navigation. 1. It is a semantic label that improves code readability and is conducive to SEO and barrier-free access; 2. The main navigation is used for the main entrance of the website, and secondary navigation is often used for internal links on the page; 3. Different navigation areas can be distinguished by aria-label or aria-labeledby attributes; 4. Different styles can be set for different use using class names or IDs in conjunction with CSS; 5. Pay attention to avoid abuse, optimize auxiliary functions, consider responsive design, and avoid nested use. Rational use can improve structural clarity and maintenance efficiency.

    See all articles

    Hot AI Tools

    Undress AI Tool

    Undress AI Tool

    Undress images for free

    Undresser.AI Undress

    Undresser.AI Undress

    AI-powered app for creating realistic nude photos

    AI Clothes Remover

    AI Clothes Remover

    Online AI tool for removing clothes from photos.

    Clothoff.io

    Clothoff.io

    AI clothes remover

    Video Face Swap

    Video Face Swap

    Swap faces in any video effortlessly with our completely free AI face swap tool!

    Hot Tools

    Zend Studio 13.0.1

    Zend Studio 13.0.1

    Powerful PHP integrated development environment

    mPDF

    mPDF

    mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

    SublimeText3 Chinese version

    SublimeText3 Chinese version

    Chinese version, very easy to use

    SAP NetWeaver Server Adapter for Eclipse

    SAP NetWeaver Server Adapter for Eclipse

    Integrate Eclipse with SAP NetWeaver application server.

    DVWA

    DVWA

    Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software