Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Beautify code in UT
Message
General information
Forum:
Level Extreme
Category:
Other
Miscellaneous
Thread ID:
01609628
Message ID:
01609682
Views:
74
Depends on what you use really...

Easiest way to syntax highlight these days though is to use some JavaScript plug-in that does this for you. Just put the PRE text and then specify the language and the JS will do the formatting. Biggest problem there is that most don't support FoxPro so you have to customize.

On Codepaste.net I use the Ace Editor JS component (which is an online editor but it also works for display only) and I created a FoxPro syntax module for it:

http://codepaste.net/whm5yu

There are a number of other HTML Syntax highlighters out there, but you have to create the FoxPro highlighting usually, which is not too hard - start with the VB sytnax and just customize with FoxPro's keywords and delimiters usually.

+++ Rick ---

>Hay Michel,
>
>How do you beautify the FoxPro code in the message body here on the UT?
>
>I have a new section on my web site that would be better if I could color code the examples.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform