multi-edit text editor, news navigation image multi-edit text editor, products navigation image multi-edit text editor, support navigation image multi-edit text editor, purchase navigation image multi-edit text editor, customer resources navigation image multi-edit text editor, company info navigation image multi-edit text editor, sitemap navigation image



Developers who use Multi-Edit Lite** & Multi-Edit Lite for SAS®**

A FREE trial download is available as a stand alone version of Polystyle. The links below will direct you to the Polystyle website where you can purchase or download a trial copy today!

[ ...Buy... ]

[ ...Download... ]

Polystyle is competitively priced at just $69, that's less than $8 per supported language. Buy a copy today!


Multi-Edit partners with Polystyle

Multi-Edit ships with a fully-integrated copy of the Polystyle source-code beautifier, created and developed by Matt Jones.

Please note the Polystyle website for more detailed instructions/walkthroughs/etc...
http://www.polystyle.com

It installs as an Add-On, giving you the ability to format source files directly within Multi-Edit. It understands a number of the languages Multi-Edit supports. Polystyle gives you the option of accepting one of its predefined styles, modify one to your liking, or simply create your own from scratch.

The following paragraphs cover the basics of installing the bundled copy of Polystyle and using it in Multi-Edit.

For more specific usage information, see Polystyle's help, or visit its web site, http://www.polystyle.com.

Activating Polystyle

You install Polystyle during Multi-Edit installation, by simply choosing it from the checklist of options (be sure you scroll down to view all available options).

Since Polystyle is an actively-evolving product, you should check the Polystyle web site occasionally for new versions (http://www.polystyle.com). The version to download is the Windows Upgrade version (the full version will also work, but is larger to download). Unzip it directly into your Multi-Edit install directory (not the Polystyle subdirectory, or anywhere else). Obviously, you shouldn't be running Multi-Edit when you do this. If you've run Polystyle since booting your machine, you may have to reboot to get a successful unpack; in some instances a Polystyle-related shell DLL may still be running, making it impossible to overwrite.

Now, how do you call it from within ME? It's a snap. Simply click on Tools | Format Code from the main menu bar and Polystyle will do the rest. Once you've run through the setup, your code formatter configurations are easily accessed by selecting Tools | Config Code Formatter.

Polystyle Is Simple To Use

In this walkthough you'll be taken through the short steps it takes to define your style and format your source code.  

  • Unformatted Source

    Let's start with a simple use case. Imagine you have the following java code you want to format:


    
    //new
    item = new JMenuItem("New");
    item.setMnemonic(KeyEvent.VK_N);
    item.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            System.out.println("New window");
            framework.makeNewWindow();
        }
    });
    menu.add(item);
    
    ...
    

  • Reformatted Result

    Polystyle uses examples of code to find out how you like your code styled. You may either use the Graphical Styler to style your example file using mouse clicks alone, or you may edit your example file directly for more control over your style. Let's use Polystyle's predefined 2-space indent GNU style to format our file.

    (Note that you can also edit your example file directly and customize your style.) Here's the result:


    
    //new
    item = new JMenuItem ("New");
    item.setMnemonic (KeyEvent.VK_N);
    item.addActionListener (new ActionListener()
      {
        public
        void
        actionPerformed (ActionEvent e)
         {
            System.out.println ("New window");
    
            framework.makeNewWindow ();
          }
      });
    
    menu.add (item);
    ...
    

  • Configuring Polystyle - Step 1: Define Your Examples

    When you install Polystyle, the Configuration Tool is invoked to allow you to define your personal style. You have several options to do this.

    • Option 1 allows you to define your style easily using the Graphical Styler and create a consistent style without having to edit an example file.

    • Option 2 allows you maximum flexibility, by editing the example files, you can define nearly any style imaginable.

    • Option 3 allows you to quickly select a predefined industry-standard style without having to edit any configuration files.

    • Option 4 allows you browse all the Polystyle's prepackaged styles.

    Option 1: Define Styles using the Graphical Styler

    The Graphical Styler has several categories of options for each style. When you click a style option, the preview is instantly recreated.

    Configuring Polystyle - Step 2: Set Global Preferences

    Here you may quickly set up various preferences, as shown below:

    Configuring Polystyle - Step 3: Run Polystyle

    There are a number of ways to invoke Polystyle, as shown below:

    Take Polystyle For A Spin!

    Polystyle has a demo version if you haven't had a chance to check it out yet. Use the link below.

    [ ...Download... ]