home *** CD-ROM | disk | FTP | other *** search
- /* ------------------------------------------------ */
- /* Final Writer Arexx Macro - Add HTML list Code */
- /* This macro will Place list markers either side */
- /* of text that is highlighted */
- /* $VER: HTML.number.list Ver 2.0 (10.2.96) */
- /* ------------------------------------------------ */
- Options Results
-
- Status LinePos
-
- Parse VAR Result BeginLine BeginPosition EndLine EndPosition
-
- NextLine = BeginLine
- NextLine.1 = BeginLine
-
- IF ( WORDS(Result) = 2 ) THEN DO
- FontColor Red
- NewParagraph
- Type "<OL>"
- NewParagraph
- FontColor Red
- type "<LI>"
- FontColor Black
- type " "
- NewParagraph
- FontColor Red
- type "<LI>"
- FontColor Black
- type " "
- NewParagraph
- FontColor Red
- type "<LI>"
- FontColor Black
- type " "
- NewParagraph
- FontColor Red
- Type "</OL>"
- FontColor Black
- type " "
- NewParagraph
- MoveToLine BeginLine+2 5
- EXIT
- END
-
- MoveToLine BeginLine 0
- FontColor Red
- Type "<OL>"
- NewParagraph
- DO WHILE (NextLine < EndLine)
- MoveToLine NextLine+1 0
- FontColor Red
- Type "<LI>"
- FontColor Black
- Type " "
- NextLine = NextLine.1 +1
- NextLine.1 = NextLine
- END
- MoveToLine NextLine+1 0
- FontColor Red
- Type "</OL>"
- FontColor Black
- Type " "
- NewParagraph
- NewParagraph
- MoveToLine Beginline+1 5
- EXIT
-
-