Dev Depot: Combing, and Tidying Css Code

If you’ve spent any time developing in the trenches and making extensive changes to CSS coding on the fly, you know how quickly style sheets can get out of hand; becoming an unreadable jumble that hinders coding and consumes time.

Calling itself “the greatest tool for sorting CSS properties in a specific order,” CSScomb (www.csscomb.com) allows users to “comb” through their CSS coding, sorting and setting the order of CSS properties in new and existing style sheets into the order that the user is accustomed to.

According to its publishers, the algorithm of CSScomb “simulates web-technologist’s actions upon working with CSS code to the limit.”

CSScomb parses all CSS contained within the <style> tag and style=”...” attribute, and is compatible with both single and multiline CSS; with the ability to separate groups of empty strings and CSS properties for each group, without changing the formatting of the style sheets, unless desired.

Available in an online version as well as a plugin for popular code editors such as Chocolat, Coda, Coda 2, Espresso 2, IntelliJIDEA/WebStorm/PyCharm, Notepad++, Sublime Text 2, Textmate and Vim, with packages planned for other code editing tools, CSScomb provides full support for CSS2, CSS2.1, CSS3 and beyond, with features that are ready for the next generation of advanced CSS coding.

According to its publishers, the algorithm of CSScomb “simulates web-technologist’s actions upon working with CSS code to the limit.”

“Usually to reorder code you move lines over each other, considering comments in the code, multiline records of property values, hacks and everything that could be found in the real file,” a spokesperson explains, adding that CSScomb reproduces these actions for users. “This means that the parser ‘thinks’ as a person editing the text, not as a blind robot parsing CSS.”

CSScomb sorts CSS properties within the selectors based on user specified settings, carefully treating the initial formatting of style sheets, and sorting commented properties as if they were not commented. The tool moves unknown properties down in the order in which they are met within the selector, with specifying the attribute sort order made easy; since settings on the web interface are defined by a simple list providing one line for each property, in the user’s required order. CSS properties may even be divided into groups by adding an empty line, which will not be impacted as a result of formatting.

CSScomb also parses @media ... {...} media queries and other constructors using @, such as the @2x high resolution image indicator. The tool will move expressions to the end of their properties as well, in the order they are met within the selector’s framework after parsing them, just to keep everything on track.

One- and two-dimensional JSON arrays can be used for adjusting plugin parameters, with the properties divided into groups separated by an empty line in the example of two-dimensional arrays — but you may need to do your homework first to make the best of it.

CSScomb is a useful tool that may find a home in any coder’s collection. Its publisher is also seeking some support in the form of new code editor plugins and improvements to the product’s algorithm, if you have any talent in those areas. Interested parties can demo the free online version (www.csscomb.com/online/) to see if CSScomb will work for you.

Copyright © 2025 Adnet Media. All Rights Reserved. XBIZ is a trademark of Adnet Media.
Reproduction in whole or in part in any form or medium without express written permission is prohibited.

More Articles

opinion

How to Master Team Dynamics for Startup Success

Having the right team in place is everything. That’s true in most aspects of business, but doubly so when it comes to getting a startup off the ground and thriving. The right — or wrong — people can mean the difference between a successful venture and a failed dream.

Juicy Jay ·
opinion

Eight Steps to Fast-Track AI Site Approval for Processing

Artificial intelligence is a hot topic these days. AI technology is speeding up the way we do business across all industries and offers numerous benefits, from automating processes to increasing efficiency and scalability.

Cathy Beardsley ·
opinion

How to Secure High-Risk Transactions With Network Tokenization

Ensuring the security of data as it moves through digital channels is the foundation of safe transactions, and crucial for your success. If your business can’t secure transactions, you’re exposed to myriad processing traumas.

Jonathan Corona ·
profile

WIA Profile: Reba Rocket

As chief operating officer and chief marketing officer of Takedown Piracy, long at the forefront of intellectual property protection in adult entertainment, Rocket is dedicated to safeguarding the livelihoods of content creators and producers while fostering a more ethical and sustainable industry.

Women In Adult ·
opinion

Protecting Content Ownership Rights When Using AI

In today’s digital age, content producers have more tools at their disposal than ever before. Among these tools, artificial intelligence (AI) content generation has emerged as a game changer, enabling creators to produce high-quality content quickly and efficiently.

Corey D. Silverstein ·
opinion

How Payment Orchestration Can Help Your Business

An emerging payment solution is making waves in the merchant world: the payment orchestration platform (POP). It’s quickly gaining traction as a powerful tool for managing online payments — but questions abound.

Cathy Beardsley ·
opinion

Fine-Tuning Refund and Cancellation Policies

For adult websites, managing refunds and cancellations isn’t just about customer service. It’s a crucial factor in maintaining compliance with the regulations of payment processors and payment networks such as Visa and Mastercard.

Jonathan Corona ·
profile

WIA Profile: Laurel Bencomo

Born in Cambridge, England but raised in Spain, Laurel Bencomo initially chose to study business at the University of Barcelona simply because it felt familiar — both of her parents are entrepreneurs. She went on to earn a master’s degree in sales and marketing management at the EADA Business School, while working in events for a group of restaurants in Barcelona.

Women In Adult ·
profile

Gregory Dorcel on Building Upon His Brand's Signature Legacy

“Whether reflected in the storyline or the cast or even the locations, the entertainment we deliver is based on fantasy,” he elaborates. “Our business is not, and never has been, reality. People who are buying our content aren’t expecting reality, or direct contact with stars like you can have with OnlyFans,” he says.

Jeff Dana ·
opinion

How to Turn Card Brand Compliance Into Effective Marketing

In the adult sector, compliance is often treated as a gauntlet of mandatory checkboxes. While it’s true that those boxes need to be ticked and regulations must be followed, sites that view compliance strictly as a chore risk missing out on a bigger opportunity.

Jonathan Corona ·
Show More