Indent Finder 1.0 Download

fyxm network: our download portal - Softliste.de
Indent Finder
        Bookmark and Share
  • Name:Indent Finder
  • License:Freeware
  • Developer:Philippe Fremy
  • Downloads:163
  • Rating:2 / 5
  • OS:Windows All
  • Size:48 KB
  • D.M.C.A. 
  • Download > 

Indent Finder 1.0

Indent Finder 1.0 Description:

Indentation of external program sources is a common problem. Some people use 2 spaces, some tabulations, some 4 spaces, some (the horror!) mix tab and spaces.

Text editors have usually options helping to deal with the way you indent your files. Pressing tab will insert spaces of tabulations depending on your settings. However, it only works properly with your own files, which have been indented in your own way.

As soon as you start editing external sources, you are likely to face a different indentation. Then your careful editor setting will simply fuck up the file you edit unless the guy did use the same indentation as yours. And you may not notice it.

For example if I indent with tab but sets them to be displayed as four columns and if I edit a file indented with 4 spaces, all the lines I create will be indented with tab. They will render fine on my editor, but probably not on someone else's editor.

It is especially annoyhing if you program in python as the indentation is part of the program structure.

I haven't found (yet) an editor that deals properly with this problem. The solution however is simple: the text editor must find the indentation used within a file and tune its settings according to this. This is what Indent Finder does.

The indentation analysis works on any language. It was tested successfully with C, C++, python and Java code.

The current version provides helps for the integration with vim. I hope other editors will pick either the script or the idea, and that auto-detecting indentation will become common amongst text editors. I am releasing the code under the BSD License to encourage this.

The script is written in python because it was quick and easy way to write it. The algorithm is pretty simple, and could be rewritten in C to avoid the small (almost unnoticeable) delay due to the python interpreter starting.

How it works

Indent Finder scans each line of the entry file for a space character (white space or tab) repeated until a non space character is found. Such a line is considered to be a properly indented line of code. Blank lines and mixed indentation lines are safely ignored.

Lines coming after a line ending in '\' have higher chance of being not properly indented, and are thus ignored too.

An array stores the number of lines that have a specific indentation: tab, number of spaces between 2 and 8. For space indentation, a line is considered indented with a base of x if the number of spaces modulo x yields zero. Thus, an indentaiton of 4 spaces increases the 2-spaces and the 4-spaces indentation line count.

At the end of the scan phase, the indentation that was used with the highest number of lines is taken. For spaces, to avoid the problemes of multiples like 2 and 4, the highest indentation number is preferred. A lower number is chosen if it reports at least 10% more lines with this indentation.

The step of each indentation increase is also a strong hint of the current indentation of the file. The step will grant a 10 points bonus to the number of spaces used.

Indent Finder 1.0 Requirements:

· Python

Indent Finder security information

You cannot download any crack or serial number for Indent Finder on this page. Every software that you are able to download on our site is legal. There is no crack, serial number, hack or activation key for Indent Finder present here. Our collection also doesn't contain any keygens, because keygen programs are being used in illegal ways which we do not support. All software that you can find here is freely downloadable and legal.

Indent Finder installation package is prepared to be downloaded from our fast download servers. It is checked for possible viruses and is proven to be 100% clean and safe. Various leading antiviruses have been used to test Indent Finder, if it contains any viruses. No infections have been found and downloading Indent Finder is completelly problem free because of that reason. Our experts on malware detection tested Indent Finder with various spyware and malware detection programs, including fyxm.net custom malware and spyware detection, and absolutelly no malware or spyware was found in Indent Finder.

All software that you can find on our servers, including Indent Finder, is either freeware, shareware or open-source, some of the software packages are demo, trial or patch versions and if possible (public domain licence), we also host official full versions of software.

Because we want to be one of the fastest download sites on the web, we host all the software including Indent Finder on our servers. You cannot find here any torrents or download links that would lead you to dangerous sites.

Fyxm.net does support free software, however we do not support warez or illegal downloads. Warez is harming producers of the software.

Enjoy!

Rate Indent Finder 1.0!

Rating: 2.4/5 (10 votes cast)

Similar Programs License Size Rating  
IP Finder Freeware 230 KB 2 / 5
OLK Finder Freeware 233 KB 2 / 5
Wii Finder Freeware 22 KB 1 / 5
Best Buy Finder Freeware 1 MB 2 / 5
AX-ZIP Finder Trial 691 KB 1 / 5

Featured Products

LimeWire 5.2.1 Beta / 5.1.3

LimeWire

Share computer files with anyone on the internet!

Kaspersky Anti-Virus Personal 2010

Kaspersky Anti-Virus Personal

BKaspersky AV provides all types of anti-virus protection

Winamp 5 Full

Winamp

A flexible and sophisticated application for playing and managing your music

DAEMON Tools Lite 4.30.4

Daemon Tools

Advanced application for multiprotection emulation

CMS Templates Download

Blogger Themes

Check our website devoted to CMS themes download
FYXM.net - We have everything! If not - please do contact us here.