Shopping Cart My Cart Account Log In Walkthrough IDE Integrations Contact Partner  
Polystyle
The Elegant, Intelligent Source Code Formatter

Click Here To Download A Free Trial!
C/C++   PerlPascal/Delphi
C#   CSSCMAC
Java Javascript   PHP 
JSP HTMLPython
ASP Visual BasicActionscript
Home Features Documentation Buy Polystyle Download  
Step 2: Example CSS Source

  • Overall CSS Features
  • Step 1: Unformatted Source
  • Step 2: Example Source
  • Step 3: Formatted Source

    Here's one of the CSS example files that come with Polystyle.

    Polystyle comes with style files for: Allman/BSD, Ellemtel, GNU, Kernighan & Ritchie, One True Brace Style, Unix Kernel, Linux Kernel, Stroustrup, Sun Microsystems, and Whitesmith.

    Each example file come in various indent styles, such as 2-space, 1-tab, 4-space, and others.

    Your style is easily configured using the Configuration Tool.

    To define your style, you simply edit an example file however you like.


    /**
     * This is a recommended Polystyle Cascading Style Sheet example.
     * Reformat this file as you like to define your personal style.
     *
     * Notes:
     *     Polystyle does not format comments based on examples. It will always
     *     format comments the same way.
     *
     * Copyright 2001-2003 Flashbulb Studios.
     *
     * http://www.polystyle.com
     */
    
    <!--
    
    @charset "my-charset";
    
    @import "source.css" print;
    
    // media with multiple sub rulesets
    @media screen, print
      {
      e { }
    
      e { }
    
      e { }
      }
    
    // media with exactly one sub ruleset
    @media terminal
      {
      e { }
      }
    
    // media with no sub rulesets
    @media terminal { }
    
    // page element with no subrules
    @page pageName:left { }
    
    // font-face element with multiple subrules
    @font-face
      {
      border: 1px #aaccff solid;
    
      font-family: "Robson Celtic" !important;
    
      margin-left: 3cm;
      }
    
    // rule set element with exactly one subrule
    span#myid * td:value
      {
      x: -ident + 3, noArgFunc() / func( #ff00ff );
      }
    
    // rule set with compound selector
    span.warning > span[foo = "warning"] { }
    
    // rule set with multiple selectors
    aaa, bbb, ccc { }
    
    -->

    Next, in Step 3 we get the final result!

  • Home Features Documentation Buy Polystyle Download  

    Click Here To Download A Free Trial!

    Copyright © Flashbulb Studios. All rights reserved.