X7ROOT File Manager
Current Path:
/etc/mc
etc
/
mc
/
??
..
??
edit.indent.rc
(788 B)
??
filehighlight.ini
(1.15 KB)
??
mc.default.keymap
(8.52 KB)
??
mc.emacs.keymap
(8.46 KB)
??
mc.ext
(20.54 KB)
??
mc.keymap
(8.52 KB)
??
mc.menu
(11.13 KB)
??
mcedit.menu
(12.33 KB)
??
sfs.ini
(825 B)
Editing: edit.indent.rc
#! /bin/sh # *** External Formatter (Indenter) for GNU Midnight Commander. # arguments: # $1 - Name of the file being edited # $2 - Name of the file to be processed exec >/dev/null case `echo $1 |sed 's/^.*\.//'` in c|h) # ftp://ftp.gnu.org/pub/gnu/indent/ # Please add options to your ~/.indent.pro, not here. indent "$2" ;; C|cc|CC|cxx|CXX|cpp|CPP) # http://astyle.sourceforge.net/ astyle "$2" ;; java|JAVA) # http://astyle.sourceforge.net/ astyle --style=java --mode=java "$2" ;; htm|html|HTM|HTML) # http://tidy.sourceforge.net/ tidy -q -m -ascii -wrap 80 "$2" ;; *) # http://www.gnu.org/software/coreutils/ fmt "$2" >"$2.tmp" && rm -f "$2" && mv -f "$2.tmp" "$2" ;; esac
Upload File
Create Folder