Friday, November 28, 2008

Alternate Line Shading in Program Coding

It is very simple to use alternate line shading in program coding like this :

program Hello_World; begin; writeln('Hello World !'); writeln('This is a demo for alternate line shading.'); end.

The alternate line shading in the above example are simply implemented by repeating the image at the left.
Of course, you have to adjust the height of the image to the line-height of the text.

This demo shows alternate line shading for 5 different shadings :

All animals are equal, but some animals are more equal than others. They are ... Administrators. Better late than never. Better never be late. Curiosity killed the cat. Who kill the Cat Woman ? Do as I say, and not as I do. How about when you say 'I do' ? Early bird catches the worm. Early programmer catches the bug. Failure is the mother of success. Program failure is a shit. Garbage in, garbage out and garbage inside out. Hello World ! Halloween ! I am serious. It was a joke. I am just kidding. Java, cookies together with the Sun : this is my breakfast. Keep your mouth shut and your ear, eye, mind, source-code, ... open. Life is just a bowl of cherries, and ... honeys. Money($) is not everything, but no money makes you a nothing. Nothing is impossible. Impossible is nothing. Is nothing impossible ? Orz Practice makes perfect. Illegal practice makes money. Quality rather than quantity. But, man-day is a measure for quantity. Rome was not built in one day, so did computer systems. Simple is beautiful. Simple mind is brilliant. Simphson is ... There are 10 types of people in the world: Those who understand binary, and those who don't. Universe in a nutshell. C, C++, Java, Perl, SQL, Unix, ... also in a nutshell. Vision without action is merely a dream. Action without vision just passes time. Wonder is the beginning of wisdom. Wonder Woman is ... WoW ! XD :) XP (^o^) (^0^) (^O^) ... 囧囧 You jump, I jump ! Z notation is ...

The alternate line shading colors in the above example are implemented by repeating the image at the left.

Licence Information:
All coding in this article is offered at no charge for NON-COMMERCIAL PERSONAL USE only.
The coding is copyright.
Reproduction of this coding in whole or in part in any form without the express written permission of the author is strictly prohibited.

Disclaimer :
All coding in this article is distributed "as is" and is UNSUPPORTED.
NO WARRANTY of any kind is expressed or implied.
You use AT YOUR OWN RISK.
The author will not be liable for any data loss,damages, and loss of profits or any other kind of tangible or intangible loss while using or misusing this coding.


No comments:

Duplicate Open Current Folder in a New Window

Sometimes after I opened a folder in Win7, I would like to duplicate open the same folder again in another explorer window. Then, I can ope...