Check it out! Syntax highlighting!
Displaying 1-7 of 7 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Overkill

http://ovk.actionsketch.com/parse/?vc=vector.vc
http://ovk.actionsketch.com/parse/?vc=v1_maineffects.vc

Using PHP, painful regexp, and http://vecna.verge-rpg.com/v3vergec.txt I have made a semi-functional syntax highlighting utility. Minor issues are that it tends to highlight over strings and comments, and that it will replace only parts of certain builtins, because it contains the name of a smaller builtin (ex. Rect of RectFill.) Anyway, enjoy, I spent at least 3 hours struggling with PHP regexp functions before finally getting somewhere. Comments?

Posted on 2005-02-13 20:26:47

rpgking

Wow, that is awesome :D I did notice how smaller builtins were highlighted inside of larger builtins, but other than that it looks like a cool utility. Would be neat to integrate something like that into this messageboards system. :)

Posted on 2005-02-13 21:24:12

RageCage

damn cool!

Posted on 2005-02-13 22:54:39

RageCage

hey, you know what would be even cooler? Have all the functions link to the documentation on that function in the v3 manual!

Posted on 2005-02-14 07:41:31

Zip

This rocks rather heavily. And also makes me realise I need to finish up vector properly.

Rar

Posted on 2005-02-14 12:05:35

Overkill

Quote:Originally posted by RageCage

hey, you know what would be even cooler? Have all the functions link to the documentation on that function in the v3 manual!


Yes, that would indeed rock out. I could probably just make it use the same link the 'manual search' uses if the the search form uses 'GET' method. Also, slowly and painfully getting a regular expression together to ignore doing things. I hope this thing can still pull off all the replacements before the 30-second time limit.

Posted on 2005-02-14 12:28:42

Overkill

I've improved the highlighter. It now highlights exact matches only. It also works faster, by not loading from vecna's v3vergec file every time, and instead having a keyword file. This keyword file can be updated whenever, just click the 'Update Builtins!' button. I've yet to construct a successful regular expression to not format over comments or string, though. It also links the navy blue builtins to the manual search page.

Posted on 2005-02-16 15:26:52


Displaying 1-7 of 7 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.