You must havec a web server (with PHP installed). It can be a local server (Wamp, etc...) or a distant server (rent at a host).
Compresse a file
First, download the latest version by clicking on the following button.
Then, unzip the archive that you have downloaded, and go on the compressor.html page (compress.php is the page that will recieve the sent informations ; and main.js is the Javascript code). Click on the Envoyer un fichier button (everything is in French because I am French, but I make a wiki in Frech and English). A form appears, with the field where you musts put the file to compress in. So click on it and choose the file to compress. Then, click on the Compresser ce fichier button. Finaly, a field appears with the minimified code in. You can click on the link above it to select the field. You just have to copy-paste your code in your file then ! It is simple, smart and effective !!
Compress a copied-pasted code
Tout d'abord, téléchargez la dernière version en cliquant sur le bouton ci-dessous.
Ensuite, dé-zipez l'archive téléchargée, et allez sur la page compressor.html (compress.php est la page qui traitera les informations envoyées ; et main.js est le code Javascript). Cliquez sur le bouton Copier-Coller un. Un formulaire apparait, avec un champs dans lequel vous devez coller le contenu du fichier à minimiser.
Collez-le donc, puis cliquez sur le bouton compresser ce texte. Enfin, un champs apparaît avec le code minimisé à l'intérieur. Vous pouvez cliquer sur le lien au dessus pour sélectionner le champs. Vous n'avez plus qu'à copier-coller le contenu dans votre fichier ! C'est simple, léger et efficace !
PS : Des améliorations sont prévues pour bientôt ! Quelques idées :
Possibilité de télécharger un fichier compressé ;
Possibilité de compresser plusieurs fichiers à la fois (peut-être envoi d'un .zip, on le décompresse, on minimise les fichiers, on re-compresse et on fait télécharger) ;
Si vous avez des idées, n'hésitez pas à me la soumettre par mail : mailto:thib92@users.sourceforge.net
Last edit: thib92 2012-06-08
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, welcome on code compressor / code minimizer' wiki !
Using this script is quite easy, but a wiki is still the base of a good open-source code !
Requirement
Your browser
Your browser must :
Your tools
You must havec a web server (with PHP installed). It can be a local server (Wamp, etc...) or a distant server (rent at a host).
Compresse a file
First, download the latest version by clicking on the following button.
Then, unzip the archive that you have downloaded, and go on the compressor.html page (compress.php is the page that will recieve the sent informations ; and main.js is the Javascript code). Click on the Envoyer un fichier button (everything is in French because I am French, but I make a wiki in Frech and English). A form appears, with the field where you musts put the file to compress in. So click on it and choose the file to compress. Then, click on the Compresser ce fichier button. Finaly, a field appears with the minimified code in. You can click on the link above it to select the field. You just have to copy-paste your code in your file then ! It is simple, smart and effective !!
Compress a copied-pasted code
Tout d'abord, téléchargez la dernière version en cliquant sur le bouton ci-dessous.
Ensuite, dé-zipez l'archive téléchargée, et allez sur la page compressor.html (compress.php est la page qui traitera les informations envoyées ; et main.js est le code Javascript). Cliquez sur le bouton Copier-Coller un. Un formulaire apparait, avec un champs dans lequel vous devez coller le contenu du fichier à minimiser.
Collez-le donc, puis cliquez sur le bouton compresser ce texte. Enfin, un champs apparaît avec le code minimisé à l'intérieur. Vous pouvez cliquer sur le lien au dessus pour sélectionner le champs. Vous n'avez plus qu'à copier-coller le contenu dans votre fichier ! C'est simple, léger et efficace !
PS : Des améliorations sont prévues pour bientôt ! Quelques idées :
Si vous avez des idées, n'hésitez pas à me la soumettre par mail : mailto:thib92@users.sourceforge.net
Last edit: thib92 2012-06-08