|
| Author |
Message |
MeltingWax Member

Joined: 27 Jan 2004 Posts: 132 Location: I dunno, but the padded walls are sweet...
   
|
Posted: Sun Mar 27, 2005 1:13 am Post subject: |
|
|
Make a script that will generate an html page that will mimic the colorizing done below. If you don't know any html, you can use a gui library. If you don't know either, I'm sorry . Here is how it should be colored:

http://img216.exs.cx/img216/6745/coloringexample9iq.jpg
Make the script so it can be used for any spacing style. By that I mean do not make it rely on people using tab indentations and new lines for blocks of code.
You can ignore the comments and #!/usr/bin/perl if you want to, they would make everything much harder. I know there are a lot of programs out there that will do this, so please don't cheat. If this is unrealistically hard let me know . |
|
| Back to top |
|
 |
Cer Upgraded Agent

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Sun Mar 27, 2005 1:36 am Post subject: |
|
|
You could just use Syntax::Highlight::Perl (and look at Tk::CodeText::Perl to see how that module selects the different types of Perl elements). _________________ Current Site (2008) http://www.cuvou.com/ |
|
| Back to top |
|
 |
M4RTIN Member

Joined: 31 Dec 2004 Posts: 134
  
|
Posted: Sun Mar 27, 2005 7:29 am Post subject: |
|
|
The opening and closing style for sub's is good. 
with the:
[X] sub rawr { | | hehe | | hehe |_ } |
|
| Back to top |
|
 |
MeltingWax Member

Joined: 27 Jan 2004 Posts: 132 Location: I dunno, but the padded walls are sweet...
   
|
Posted: Sun Mar 27, 2005 9:58 pm Post subject: |
|
|
I know very well that there are numerous programs and modules that will already do this. But I'm putting this up as a challenge, to see if you can do it yourself without looking at examples .
Yeah, the opening/closing is nice, but please read and understand the purpose of this topic before posting... |
|
| Back to top |
|
 |
|