SourceFormatX

Overview

Features

Why Use It

Formatting Show

Integration

Screenshots

Documentation

FAQs & Tips

Update History

Award Gallery

Testimonials

License Policy

CodeMorph

CodeToHtml

C# Source Code Formatting Show


SourceFormatX code formatter bases on powerful syntax parse engines so it can beautify and format source code files with omnifarious styles, even these messy source code examples below:

C/C++ Java C# Delphi (Pascal)
PHP JSP ASP JavaScript
Visual Basic VB.NET VBScript HTML Components
80x86 ASM 8051 ASM CORBA IDL


  C# Source Code Formatting Examples:     Example 1   |   Example 2   |   Example 3   |   Example 4

This is an extreme C# code formatting example, the purpose of it is to show the power of CSharp syntax parse engine powered by SourceFormatX C# Code Formatting Tool.

  /* Before CSharp Code Formatting */

  namespace Tekdev.Cryptography{using System;using System.Text;using System.IO;
  internal class RSAUtilties{internal static void WriteKeyFile(string expression,
  string keyLocation){using(FileStream fs=new FileStream(keyLocation,
  FileMode.Create)){StreamWriter writer=new StreamWriter(fs);writer.Write(
  expression);writer.Close();}return;}internal static string ReadKeyFile(string
  keyLocation){string keyValue=string.Empty;using(FileStream keyStream=File.Open(
  keyLocation,FileMode.Open)){StreamReader reader=new StreamReader(keyStream);
  keyValue=reader.ReadToEnd();reader.Close();}return keyValue;}}}


  /* After CSharp Code Formatting */

  namespace Tekdev.Cryptography {
    using System;
    using System.Text;
    using System.IO;

    internal class RSAUtilties {
      internal static void WriteKeyFile(string expression, string keyLocation) {
        using(FileStream fs = new FileStream(keyLocation, FileMode.Create)) {
          StreamWriter writer = new StreamWriter(fs);
          writer.Write(expression);
          writer.Close();
        }

        return ;
      }

      internal static string ReadKeyFile(string keyLocation) {
        string keyValue = string.Empty;
        using(FileStream keyStream = File.Open(keyLocation, FileMode.Open)) {
          StreamReader reader = new StreamReader(keyStream);
          keyValue = reader.ReadToEnd();
          reader.Close();
        }

        return keyValue;
      }
    }
  }

Example 1   |   Example 2   |   Example 3   |   Example 4

  Don't waste time on formatting CSharp code by hand any more!  Use SourceFormatX C# Code Formatter to format your Java code.