Code covered by the BSD License  

Highlights from
Colorize Document Bar

5.0

5.0 | 2 ratings Rate this file 10 Downloads (last 30 days) File Size: 4.45 KB File ID: #39157
image thumbnail

Colorize Document Bar

by

 

File names in the document bar of the editor are colorized according to the path

| Watch this File

File Information
Description

This function colorizes the buttons with file names in the document bar of the Matlab editor according to the folders the files are stored in.
The colors are chosen to allow maximal distinct.
  
Different modes can be selected
  - colorize_documentbar()
      Colors are chosen automatically; each folder gets its own color.
 
  - colorize_documentbar('folder',LIST_FOLDERS,LIST_COLORS)
      with inputs
          LIST_FOLDERS cellarray with string (1 x n)
          LIST_COLORS n x 3 colormatrix (RGB values)
      Files in one of the folders or subfolders listed in LIST_FOLDERS
      get the color given in LIST_COLORS.
      All other files get colors which are chosen automatically.
 
  - colorize_documentbar('root',list_folders_root,LIST_ROOTCOLORS)
      with inputs
          list_folders_root: cellarray with string (1 x n)
          LIST_ROOTCOLORS: n x 3 colormatrix (RGB values)
      Files in one of the folders listed in list_folders_root get colorized
      with the color given in LIST_ROOTCOLORS.
      Files in subfolders of the folder get a color similar to the one of the
      parent directory. Each subfolder has its own color.
      All other files get colors which are chosen automatically.
 
  colorize_documentbar('folder',LIST_FOLDERS,LIST_COLORS,'root',list_folders_root,LIST_ROOTCOLORS)
     Combination of the two modes listed above.
  
  colorize_documentbar('sort')
     Sorts the opened documents by color. (Experimental)

This function requires the File Exchange contributions http://www.mathworks.com/matlabcentral/fileexchange/14317 and http://www.mathworks.com/matlabcentral/fileexchange/29702.

Acknowledgements

Find J Obj Find Java Handles Of Matlab Graphic Objects and Generate Maximally Perceptually Distinct Colors inspired this file.

This file inspired Embeddedmethodsviewer Show Functions And Methods Within Matlab Editor.

MATLAB release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
09 Jul 2014 Oren

It worked great on R2011. But it doesn't work on
R2014a. Someone has a workaround?

20 Jan 2014 ruthy  
05 Dec 2012 Mario Lietz

Useful tool when several files are open.

Contact us