You are not logged in.

#1 2013-07-11 03:34:56

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

beautify-css: CSS beautifier written in Haskell

Introduction

This is yet another by-product of my getting sidetracked while working on something else. It is a simple command-line stream parser that operates on STDIN and writes to STDOUT. It produces CSS that is easy to read.

The project page is http://xyne.archlinux.ca/projects/beautify-css/

Examples

Here's the Arch Linux forum style sheet before and after. Note the sorted selectors and declarations.

More examples will be found here if I add any.


Let me know if you find any bugs. The W3C CSS3 syntax draft is unclear (to me at least) on how to define the CHAR token parser, so after trying various things I have resorted to trial-and-error (see the commented code if you are interested).


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB