Source code prettifier.
- Make source code files with the following extensions adhere to Coda spacing rules :
- PHP : php.
- HTML : html, htm, xml, twig.
- CSS : css, less, pepss, sass, scss, styl.
- JavaScript : js, jsx, ts, tsx, json.
- C : c, h.
- C++ : cxx, hxx, cpp, hpp.
- D : d.
- Dart : dart.
Install the DMD 2 compiler (using the MinGW setup option on Windows).
Build the executable with the following command line :
dmd -m64 prettify.d
prettify [options] file_path_filter
--backup BACKUP_FOLDER/ : store the original files in this folder
--output OUTPUT_FOLDER/ : store the fixed files in this folder
prettify ".//*.d"
Prettifies all D files in the current folder and its subfolders.
prettify --backup BACKUP_FOLDER/ "*.php"
Prettifies all PHP files after having stored the original files in "BACKUP_FOLDER/".
prettify --output OUTPUT_FOLDER/ "*.js"
Prettifies all JavaScript files and store the fixed files in "OUTPUT_FOLDER/".
1.0
Eric Pelzer (ecstatic.coder@gmail.com).
This project is licensed under the GNU General Public License version 3.
See the LICENSE.md file for details.