Monday, February 14, 2011

Colorful Comments for Rar/Zip Archives

You would have seen lots of Zip/Rar archive which includes colorful comment on the right side and would have thought that wish i could do something like this. It isn't that hard, what you have to do is to add some code to your particular text and viola...here is a step by step tutorial how to add those colorful comments: First of all select files to be archived or double-click on existing zip/rar archive file.


A window will open in which you can specify file name and other settings for the archive file, click on the comment tab.


Now type in the comment in text area or browse for a text file by clicking on the browse button, but prefer to type in the comment in a text file.


My text file was something like this.


Select the file: 


Now any text you are using as comment will appear without any formatting like this:

 
To add some colors to the text you have to use some color codes (given below) before the particular text. Open the archive file recently created. Click on Comment and add those codes before any text of which you want to apply formatting.

 

Here is a list of codes/color schemes which you should use before the particular text for which you want to apply the formatting, but the codes given below should be written after the escape sequence character and the problem is that we cannot directly write that character in the comment area of WinRAR or notepad, to get that character go-to start menu and click run, type cmd and press enter. On the Command Prompt window type the following command and press enter, 
copy con d:\esc.txt
Now hold down the Alt key and type 27 using Numpad keys and release the Alt key and a character will appear, then press Ctrl + Z and press enter to complete the file creation process.


Now open the esc.txt saved on d drive, copy the character and paste right before every code you apply 

[0;1;37m
White text, Black background.

[0;1;37;30m
Grey text, Black background.

[0;1;37;31m
Red text, Black background.

[0;1;37;32m
Green text, Black background.

[0;1;37;33m
Yellow text, Black background.

[0;1;37;34m
Blue text, Black background.

[0;1;37;35m
Fuxia text, Black background.

[0;1;37;36m
Celestial text, Black background.
 

Experiment with the number and you'll get a nice result, here are some above colors in darker tone.
[0;2;37m
[0;2;37;30m
[0;2;37;31m    -->Invisible Text
[0;2;37;32m
[0;2;37;33m
[0;2;37;34m
[0;2;37;35m
[0;2;37;36m


Now if you want to make a text block, here is the code to use for it with different color combination
[0;1;37;41m
[0;1;37;42m
[0;1;37;43m
[0;3;37;43m
[0;1;37;44m
[0;1;37;45m
[0;1;37;46m
[0;3;37;47m


The result would be something like this:




Download my text file for your convenience.

To download Winrar, click here


Source for colors code taken from:


2 comments: