Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Beautify code in UT
Message
From
19/10/2014 14:43:02
 
 
To
19/10/2014 14:25:44
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Level Extreme
Category:
Other
Miscellaneous
Thread ID:
01609628
Message ID:
01609638
Views:
41
>>>>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.
>>>
>>>do you mean <pre> tags?
>>
>>Well, in a way. But just placing the code in a PRE block does not beautify the code with colors.
>>
>>My web page is reading the PRG file from the disk, and displaying it in a PRE block on the page as is.
>>Therefore, currently no formatting is occurring.
>
>
>so you will not use that within UT but on your website.
>
>That needs more work
>
>You need tho parse out the prg and put anything with colors. Common is to wrap it stuff in <span> tags with classes and CSS it.
>
>But you need to parse.
>
>A possible start is to look at Martinas Jindrovas PDM project. It parses out VFP code. see http://gorila.netlab.cz/pdm.html
>
>Possibly you might run your code against PDM and manipulate the result (or just cut the important parts out of the result) and include all the stuff to your WEB project. It's not to tricky

Thanks for the suggestions. I will look into the PDM solution. If GoDaddy (hosts my site) will let me, I possibly could use it to convert the PRG code to a HTML format on the fly.
Greg Reichert
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform