What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [release] JavaScript and PHP syntax highlighting...

[release] JavaScript and PHP syntax highlighting...
Author: Message:
the DtTvB
Junior Member
**


Posts: 47
Reputation: 10
– / Male / –
Joined: Mar 2007
Status: Away
O.P. [release] JavaScript and PHP syntax highlighting...
This script is not yet stable. Please report bugs and suggestions!

--=--=--=--=--=--=--=--=--=--=--=--

Download: http://dttvb.yi.org/js-php-hi.plsc

Example:
[Image: asdhas.gif]

--=--=--=--=--=--=--=--=--=--=--=--

This script will highlight JavaScript and PHP syntax.

Features:
  • Uhhh...
  • Highlight strings, comments, and inline regexp. Does not use regular expression, so it should handle strings more correctly.[/font]
  • Highlight numbers.
  • Highlight keywords.
  • Highlight members. It highlights thing that follows '.', '::', or '->'. It also highlight something before ':', but not '::'.
  • Highlight functions. Something before '('.
  • Highlight parentheses. ( ) { } [ ].
  • Highlight PHP variables. Something after $.

--=--=--=--=--=--=--=--=--=--=--=--

How to use...
Use the /code command.
/code <a code to highlight>

--=--=--=--=--=--=--=--=--=--=--=--

If you don't like the colors, you can change them by editing the script. Near the line #21.
I still use the old formatting way because some of my friends prefer not to use WLM. But it could be easily changed!


the DtTvB
.
03-09-2007 11:01 AM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [release] JavaScript and PHP syntax highlighting...
If you don't mind, may I use this for a script I am working on?

I will give credit where credit is due, this will just save me from having to do it myself basically.
03-09-2007 03:55 PM
Profile E-Mail PM Find Quote Report
mickael9
Full Member
***


Posts: 117
Reputation: 3
33 / Male / Flag
Joined: Jul 2005
RE: [release] JavaScript and PHP syntax highlighting...
It doesn't higlight keywords in strings or comments and that's really good.

Nice script :)
03-09-2007 07:55 PM
Profile PM Web Find Quote Report
the DtTvB
Junior Member
**


Posts: 47
Reputation: 10
– / Male / –
Joined: Mar 2007
Status: Away
O.P. RE: [release] JavaScript and PHP syntax highlighting...
Sure, you can! ;)

Thank you everyone for comments!
the DtTvB - My name has no meaning, but it's unique at least!
[Image: asj.gif]
03-10-2007 02:29 AM
Profile E-Mail PM Web Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: [release] JavaScript and PHP syntax highlighting...
That's great! I'm certainly going to use that when someone asks me for some code! :D

Great job, and welcome to the forums! (y)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
03-10-2007 09:13 AM
Profile E-Mail PM Web Find Quote Report
Eddie
Veteran Member
*****


Posts: 2078
Reputation: 30
32 / Male / Flag
Joined: Oct 2005
Status: Away
RE: [release] JavaScript and PHP syntax highlighting...
Welcome to the forums :) Very nice script :)
...there used to be a signature here :)
03-10-2007 10:21 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On