Format Formula as HTML (Rewrite: Color Code Domino Formula)
Bookmark :
Here is my second attempt at formatting formula code. My previous solution used JavaScript to Color Code Domino Formula. There could be some problems with using JavaScript, so I started with the same regular expressions and used Regular Expressions in LotusScript. Once again I had some concerns depending on things out of my control.
I ended up using Julian Robichaux's Using Wildcard Expressions in Java. If you have used Julian's Format LotusScript as HTML, RTF then you will be very familiar Format Formula 2 HTML.
The code is not very well document at this point, I will continue to work on that. I have to admit that I am a self taught Java programmer so if anyone has any improvements that can be made please let me know. The Java and regular repressions seem to be running very quick (2-3 seconds) until I format my Edit Document Fields. It takes about a minute to format which is not really that bad considering the number of characters.
Thanks, Julian for all the work you did with LotusScript to HTML and the regular expression example they saved me hours of work.
try it out
Here is my second attempt at formatting formula code. My previous solution used JavaScript to Color Code Domino Formula. There could be some problems with using JavaScript, so I started with the same regular expressions and used Regular Expressions in LotusScript. Once again I had some concerns depending on things out of my control.
I ended up using Julian Robichaux's Using Wildcard Expressions in Java. If you have used Julian's Format LotusScript as HTML, RTF then you will be very familiar Format Formula 2 HTML.
The code is not very well document at this point, I will continue to work on that. I have to admit that I am a self taught Java programmer so if anyone has any improvements that can be made please let me know. The Java and regular repressions seem to be running very quick (2-3 seconds) until I format my Edit Document Fields. It takes about a minute to format which is not really that bad considering the number of characters.
Thanks, Julian for all the work you did with LotusScript to HTML and the regular expression example they saved me hours of work.
try it out







Comments
Posted by Johan Känngård At 12:15:01 AM On 02/28/2005 | - Website - |