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 JSP Source

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

    Here's one of the JSP 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 JSP example.
     * Reformat this file as you like to define your personal style.
     *
     * Notes:
     * 1.) Formatting information for inline <jsp:directive> tags are defined
     *     in example.html.
     *
     * 2.) Polystyle does not format comments based on examples. It will always
     *     format comments the same way.
     *
     * Copyright 2001-2003 Flashbulb Studios.
     *
     * http://polystyle.com
    --%>
    <fake-tag a = "<%= x %>" b = y <%= x %> = <%= x %>> text </fake-tag>
    
    <%
      a();
    %>
    
    <% %>
    
    <%!
      void v() { }
    %>
    
    <%! %>
    
    <%@ directive a = "1" b = "2" c = "3"%>
    
    <%@ directive a = "1"%>
    
    <fake-tag><%= a %></fake-tag>
    
    

    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.