Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Syntax-highlighted codes

Syntax-highlighted codes

Syntax-highlighted codes

How does KevinADC get his codes to be syntax highlighted? He's probably using some kind of external thing that generates the UBB color and link codes.

I know he prolly wants to be unique and be the only one with the cool-looking code tags, but how do you do it? Code formatted that way should be used more frequently, not just because it's cool, but because all the perlfuncs get links directly to their manpages so people don't have to make an extra stop to Google to find out what quotemeta does, for example.


Cuvou.com | The NEW Kirsle.net

RE: Syntax-highlighted codes

Star just for sharing that URL Kevin.
Likey likey.

RE: Syntax-highlighted codes

Everyone is welcome to use it, but it's just a module I hacked up for fun and personal use so there is no guarantee it will always be available at that URL.

It's designed only for perl code and only for adding TGML code for posting here when desired. So don't try highlighting PHP or HTML or other languages with it. The results will probably be strange to say the least.

It's been tested only so much, so if anyone finds a bug in the output post any comments here. I know sometimes barewords or hash keys are parsed as functions if the name is the same as a builtin perl function but I don't plan on trying to fix that.  

- Kevin, perl coder unexceptional! wiggle

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close