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 Visual Basic Source

  • Step 1: Unformatted Source
  • Step 2: Example Source
  • Step 3: Formatted Source

    Here's one of the Visual Basic example files that come with Polystyle, this is the Whitesmith style.

    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.


    VERSION 1.0 CLASS BEGIN
      statement
    END
    
    x & x
    
    x And x
    
    a.x
    
    x * x
    
    x + x
    
    x = x
    
    x || x
    
    x <= x
    
    x ? x : x
    
    x, x
    
    x (x) x
    
    x [x] x
    
     Public Class X
      Inherits Y
      statement
    
      statement
    
      statement
    End Class
    
    Try
      statement
    Finally
      statement
    End Try
    
    Select Case s
      Case c
        statement
    End Select
    
    Do
      While x
        statement
      Wend
    Loop Until x
    
    For x
      statement
    Next x
    
    Declare X Sub Y
    
    Public Event X Sub Y Inherits I
    
    If x Then
      statement
    ElseIf y
      statement
    Else
      statement
    End If
    
    #Region x
      statement
    #End Region
    
    #If x Then
      statement
    #ElseIf x Then
      statement
    #Else
      statement
    #End If
    

    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.