Code covered by the BSD License  

Highlights from
SMARTINDENT

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 3.49 KB File ID: #2038
image thumbnail

SMARTINDENT

by Francesco di Pierro

 

23 Jul 2002 (Updated 24 Jul 2002)

SMARTINDENT customizes the indentation of m files.

| Watch this File

File Information
Description

SMARTINDENT is a tool to customize the indentation of your m files without going manually through the whole process.

SMARTINDENT fully mimics the behaviour of the MATLAB editor's smartindent command:

- it allows you to choose the number of spaces/tabs used for the indentation;

- it can handle nested and partially nested flow control commands.

SMARTINDENT does overwrite the files you want it
to process, therefore:

- when invoked from the command line, SMARTINDENT warn the users to back up first their files;

- when invoked from within another function or script, no warnings are issued, thus allowing for off-line multiple calls.

To process all files under a given folder(s), call SMARTINDENT with FUF,
e.g., to process all m files under folders ...\Documents and ...\MyFcns, type

smartindent(fuf({'...\Documents\*.m','...\MyFcns\*.m'}))

You can download FUF from the Matlab File Exchange under the category DEVELOPMENT ENVIRONMENT: the submission name is "Files Under Folders".

MATLAB release MATLAB 6.0 (R12)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
development environment Francesco di Pierro 22 Oct 2008 06:46:48
indentation indent Francesco di Pierro 22 Oct 2008 06:46:48
utilities Francesco di Pierro 22 Oct 2008 06:46:48
development Francesco di Pierro 22 Oct 2008 06:46:48
smart Francesco di Pierro 22 Oct 2008 06:46:48

Contact us at files@mathworks.com